Skip to content

Way to show mutiple figures in columns and rows #555

Answered by yhatt
qqlovekerry asked this question in Q&A
Discussion options

You must be logged in to vote

A common solution is using the table syntax for Markdown. Marp assumes familiarity with Markdown syntax, so sites such as Markdown guide can be useful references for Markdown syntaxes.

| ![image1](https://picsum.photos/200?image=1) | ![image2](https://picsum.photos/200?image=10) |
| :---: | :---: |
| ![image3](https://picsum.photos/200?image=11) | ![image4](https://picsum.photos/200?image=12) |

Or you can be achieved it by using style such as CSS Grid if you need to fine layout. This approach should also be compatible with non Marp Markdown document if the style was supported.

<style>
.grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 1rem;
  place-items: center;
  w…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@qqlovekerry
Comment options

@yhatt
Comment options

yhatt Jan 8, 2025
Maintainer

@qqlovekerry
Comment options

@yhatt
Comment options

@qqlovekerry
Comment options

Answer selected by yhatt
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