-
Is it possible to have two images next to each other horizontally? I've tried to use align left and right with image size and that works on one monitor size but not when that size changes. It tries to fix text under the images in the space instead of just leaving that space blank. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
You don't need to specify alignment if you wish to render images next to each other. Just define them one after another in Markdown, they are rendered as inline elements by default: ![Image 1](...)
![Image 2](...) If you add an empty line after those images, text will start in a new paragraph. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately this approach did not work for me when trying to center 2 side-by-side images using Places them side-by-side ✔️ ![Elements](../../images/elements-logo.png){: style="height:83px"}
![Dandi](../../images/dandi-logo.png){: style="height:83px"} Puts them on new lines ❌ <figure markdown>
![Elements](../../images/elements-logo.png){: style="height:83px"}
![Dandi](../../images/dandi-logo.png){: style="height:83px"}
<figcaption>Partners</figcaption>
</figure> Got the idea for using figure from the docs but curious if there is a better approach. @squidfunk Is there anything you'd recommend? |
Beta Was this translation helpful? Give feedback.
-
Grid cards seem to provide a nice solution (size of images is adjusted automatically). For example: <div class="grid cards" markdown>
- Daily distance entire challenge
---
![](summer-walking-challenge/entire_challenge_dist_km.png)
- Daily distance post-challenge
---
![](summer-walking-challenge/post_challange_dist_km.png)
- Daily distance last month of challenge
---
![](summer-walking-challenge/last_month_dist_km.png)
- Daily step count last month of challenge
---
![](summer-walking-challenge/last_month_step_count.png)
</div> This even plays nicely with |
Beta Was this translation helpful? Give feedback.
You don't need to specify alignment if you wish to render images next to each other. Just define them one after another in Markdown, they are rendered as inline elements by default:
If you add an empty line after those images, text will start in a new paragraph.