-
✅ When you use [bg right] I want to make come to the right.✅ My style setting.
✅ If you do not use [bg right]
✅ If you use [bg right]
✅ The result I want |
Beta Was this translation helpful? Give feedback.
Answered by
yhatt
Jan 7, 2024
Replies: 1 comment 1 reply
-
The header contents inserted by the If you want to align the header to the right of the slide, don't use ---
theme: gaia
header: Header contents
---
<style>
header {
text-align: right;
}
</style>
![](https://marp.app/favicon.png)
# Hello
Your contents are here...
<style scoped>
img:first-of-type {
float: right;
width: 50%;
height: auto;
}
</style> It's also good to put the inline image to the right side of 2 columns layout. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yhatt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The header contents inserted by the
header
directive is a part of slide contents, and it cannot interfere the split image area that was generated by![bg right]()
. This behavior is same as Deckset.If you want to align the header to the right of the slide, don't use
![bg right]()
and use a normal inline image![]()
with styling instead. A following Markdown is usinggaia
theme and aligning the image throughfloat: right
.It's also good …