Skip to content

How do I set the size of an image explicitly? #585

Closed Answered by pavel-kirienko
pavel-kirienko asked this question in Questions
Discussion options

You must be logged in to vote

Solved with custom styles in my custom.css:

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"/>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pavel-kirienko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant