marp-team / marp-core

The core of Marp converter
MIT License
800 stars 132 forks source link

Images gallery #364

Closed piranna closed 11 months ago

piranna commented 11 months ago

Allow to have multiple images one side to other, like a row of commercial labels or sponsors, similar to the left and right flags, or ideally allow to have absolute (relative?) position of images in a slide.

yhatt commented 11 months ago

ideally allow to have absolute (relative?) position of images in a slide.

That is already available by using CSS styles. For example, to place image(s) in specific absolute position:

![](https://example.com/image.jpg)

<style scoped>
img {
  position: absolute;
  left: 50px;
  top: 50px;
}
</style>

You also can specify the target image from multiple images, by using img:nth-of-type(x) selector.

The suitable layout would be different by the slide purpose, so Marp does not provide the layout for specific situations. Add the custom style as you like.