Skip to content

issue with inline images #272

Answered by imfing
vinnciane asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vinnciane
can you try override the default CSS style for the <img> tag with the custom CSS rules documented here: https://imfing.github.io/hextra/docs/advanced/customization/#custom-css

img {
    display: inline-block;
}

.content :where(img):not(:where([class~=not-prose],[class~=not-prose] *)) {
    margin-top: 0;
    margin-bottom: 0;
}

The most important part is to change the img to be inline-block so they will be displayed next to your texts.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vinnciane
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants