-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As a basic thing, Markdown will create implicit pararaphs Changing Using background images is also important for preserving text semantics in Markdown, and making better documents that both of Markdown and its output are in consideration of accessibility. ---
_class: title
---
<!-- Global style -->
<style>
section {
/* Note: Relative path is resolved from a directory that Markdown/HTML is located, not CSS */
background: url('./meanvecAB.png') no-repeat right 20px top 20px / 80px 80px;
}
section.title {
background: url('./UCalgary_Zoom_background_01.png') no-repeat center center / cover;
}
</style>
Title
---
<!-- paginate: true -->
Contents Don't forget that you can extract global style into your custom theme CSS at any time. If extracted, Markdown should be extremely simple: including only slide contents, no extra decorative things. |
Beta Was this translation helpful? Give feedback.
As a basic thing, Markdown will create implicit pararaphs
<p>
to every separated lines. So styling just ap
may break other contents as you've tried.Changing
p
selector top:has(img)
may work, but my best practice is using CSS background-image for the slide container<section>
.Using background images is also important for preserving text semantics in Markdown, and making better documents that both of Markdown and its output are in consideration of accessibility.