-
I want to add image to the slide. And I run into formatting issues because the image prevents rendering of text from left to right. If I can create tables I can do something like this: ----------------------------
Title of the slide deck
----------------------------
- some text here | |
- some text here | image |
- some text here | |
----------------------------
However currently it doesn't render like this. See the image attached where title is pushed to the left side. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It seems to use the split background through Marp basically leaves the advanced layout to CSS styling because Markdown syntax has not designed for layout. So you have to use CSS Grid Layout in the inline You also can use the interactive generator of CSS Grid like https://grid.layoutit.com/?id=qAgdFLX if you've not familiar with CSS Grid. There is a similar solution in marp-team/marpit#137 (comment). Alternative solutions
|
Beta Was this translation helpful? Give feedback.
-
enabling html worked. So i followed the following steps.
<style>
div.twocols {
margin-top: 35px;
column-count: 2;
}
div.twocols p:first-child,
div.twocols h1:first-child,
div.twocols h2:first-child,
div.twocols ul:first-child,
div.twocols ul li:first-child,
div.twocols ul li p:first-child {
margin-top: 0 !important;
}
div.twocols p.break {
break-before: column;
margin-top: 0;
}
</style>
---
# Tiling can improve the access pattern
<div class="twocols">
## LHS Title
- item
<p class="break"></p>
![right height:350px](tiling-good-access.png)
</div>
--- And it renders as desired. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Similarly for two rows, for example: div.tworows {
margin-top: 10px;
column-count: 1;
}
div.tworows p:first-child,
div.tworows h1:first-child,
div.tworows h2:first-child,
div.tworows ul:first-child,
div.tworows ul li:first-child,
div.tworows ul li p:first-child {
margin-top: 0 !important;
}
div.tworows p.break {
break-before: row;
margin-top: 0;
} |
Beta Was this translation helpful? Give feedback.
enabling html worked. So i followed the following steps.
A…