I am trying to get images to fit the screen using the code below. Is there anything I'm missing? Do I need to explicitly set the image size in pixels for image sizing to work in prince? The caption works so I'm not certain where the problem is.
// Builds figures with different alignments
figure {
counter-increment: figure-count;
prince-image-resolution: auto, 300dpi;
width: 100%;
img {
width: inherit;
}
figcaption {
font-size: .75rem;
font-color: rgb(51, 51, 51);
}
figcaption::before {
content: 'Figure ' counter(figure-count) ': ';
}
}