aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorSam Scholten2026-08-27 15:16:21 +1000
committerSam Scholten2026-08-27 15:16:21 +1000
commit3744e927eef57da85bb466391742cfdf07f84113 (patch)
treee720589ff8579d28c78e1354c9635dd6d549f05d /README
parent54f84e20a22d0f3c2a664da076c3aa166039edc1 (diff)
downloadacarp-marp-theme-3744e927eef57da85bb466391742cfdf07f84113.tar.gz
acarp-marp-theme-3744e927eef57da85bb466391742cfdf07f84113.zip
add hspace-* horizontal offset utilities, document in README
Diffstat (limited to 'README')
-rw-r--r--README8
1 files changed, 8 insertions, 0 deletions
diff --git a/README b/README
index 44922b5..28e1567 100644
--- a/README
+++ b/README
@@ -123,6 +123,14 @@ def hello(name):
<div style="height: 15em"></div> <!-- custom sizes: use this instead (consecutive vspace divs don't stack - margins collapse) -->
```
+### Horizontal Offset
+```html
+<span class="hspace-large">indented text</span> <!-- inline: shifts this fragment right on the line -->
+<div class="hspace-large">indented block</div> <!-- block: indents the whole line/block -->
+<span style="padding-left: 8em">custom</span> <!-- custom offsets: use this inline -->
+<!-- classes: tiny 0.5em, small 1em, medium 2em, large 3em, xlarge 4em, xxlarge 5em, hspace-6..10 (em). Replaces fragile &nbsp; runs. -->
+```
+
## Themes
## Customization