-
Hello. I'm using Marpit via VScode. Here is mi minimum working example:
Problem with this code is that it produces slide where text and images are aligned in to the center as it is seen on following picture: I would like to have text as an Header rather than crossing image. How can I achieve this? Thank you very much |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Don't use "bg" keyword in an image. It is only for slide background. Use a standard Markdown inline image for layout, with a bit of styles. ## Heading

<style scoped>
/* Styling for centering (required in default theme) */
h2, p {
text-align: center;
}
</style> Recommend to set an image height through |
Beta Was this translation helpful? Give feedback.
Don't use "bg" keyword in an image. It is only for slide background. Use a standard Markdown inline image for layout, with a bit of styles.
Recommend to set an image height through
h:xxx
, to prevent sticking out from the edge of slide.