|
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 |
Answered by
yhatt
Sep 13, 2021
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 |
3 replies
Answer selected by
yhatt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


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.