How to indent the body text according to the header?

I’m having issues, been trying all afternoon and I keep getting bugs.
The “~” selector takes every element after it, which causes issues. I can’t find a selector that selects from element to element.

This is the best I could do, I think a js script would be needed to put all the divs after a heading until the next heading into a new div so the css could be resolved more easily…

Unfortunately I haven’t made any plugins yet.
I might give it another go some other day.

headings-indent2.css (4.5 KB)
(It’s full of bugs, wouldn’t use it, perhaps you can find someone who can fix it from here)

1 Like