-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add percentage of 'right' or 'left' to bg image directive #166
Comments
Sounds good. Exactly my slide had tried the same thing by using inline style, but definition by percentage is much simpler and easy to use.
<!-- Default (50%) -->
![bg left](https://example.com/example.jpg)
---
<!-- One-third (33%) -->
![bg left:33%](https://example.com/example.jpg) |
Thank you. Please, could you point me to the documentation for inline styling? I am having trouble figuring out how to do this with inline styling and also to fix the position of the h1 headers. Thanks again. |
There is an extension of documents for theme CSS. The following is very ugly workaround... ![bg](https://via.placeholder.com/150)
![bg](about:blank)
![bg](about:blank)
<style scoped>
section {
padding-left: calc(33% + 80px);
}
</style>
# Ugly workaround for one-third bg on the left |
Thank you! I agree - this is not the best workaround :) But it's usable nonetheless :) Thank you again for all your work! |
Added size argument in #168. We are going to ship v1.1.0 shortly, and Marp tools would update to use the released version. |
Hello @yhatt, what is your opinion about adding a percentage to the [bg left]/[bg right] directive? Currently, these split the slide at 50%, but if say we did [bg left w:33%], this would mean that the bg image spans one-third of the slide and the text takes up the remaining two-thirds. Will it be possible to add this by any chance?
PS: Thank you so much for making Marp happen!
The text was updated successfully, but these errors were encountered: