arnehilmann / markdeck

presentations as code - author cool slide decks, text-only, offline-ready, collaborative
https://arnehilmann.github.io/markdeck/
MIT License
1.25k stars 38 forks source link

How to not center text? #15

Closed neilhwatson closed 5 years ago

neilhwatson commented 5 years ago

How can the default behaviour of centring text be changed? I cannot find any examples in the docs.

arnehilmann commented 5 years ago

add the css class flush_text_left to the section, like this:

# my header {.flush_text_left}

text should appear on the left...

markdeck relies on the presentation framework reveal.js; so have a look here also...

neilhwatson commented 5 years ago

For posterity I did this inside slides.md before the first slide.

<style type="text/css">
.reveal .slides { text-align: left; }

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 { text-align:  center; }
</style>