View Single Post
Old 01-23-2020, 11:55 PM   #14
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,589
Karma: 14328510
Join Date: Nov 2019
Device: none
Speaking of indents, the guy who did the ebooks on the now defunct University Adelaide ebook page had a clever hack for automating it with CSS:

Code:
p {
    text-indent: 0;
}

p + p {
    text-indent: 1.5em;
}
It's a bit confusing at first because that first rule would make me think that paragraphs don't get indented, but that rule matches all paragraphs that aren't after another paragraph.

But I'm not sure it's a viable setup; it doesn't indent any paragraph that follows a div, blockquote, figure, img, etc. which looks odd to me. I prefer to do the more usual thing, set indent on all paragraphs to 1.5em, then have stuff like

Code:
h2 + p, h3 + p {
    text-indent: 0;
}
hobnail is offline   Reply With Quote