How do I set the size of an image explicitly? #585
-
I insert an image into my MyST document with an explicit height specification as follows: <img alt="EMF" height="300px" src="../figures/x8016s-vdiffab-ia.png"/> In the rendered HTML, I see that the height attribute is present, but it is ignored because Furo sets the height CSS property to How do I specify the height of an image? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved with custom styles in my img.height-100px {
height: 100px;
}
/* ... */
img.height-500px {
height: 500px;
} Then define the image as: <img alt="EMF" src="../figures/x8016s-vdiffab-ia.png" class="height-300px"/> |
Beta Was this translation helpful? Give feedback.
Solved with custom styles in my
custom.css
:Then define the image as: