View Single Post
Old 01-17-2025, 03:46 PM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,845
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
Hardly relevant since the OP is likely to pick an indent they prefer.

An alternative in the CSS stylesheet to indent all but first paragraphs might be:

Code:
p { 
    text-indent: 1.5em; 
}

p:first-of-type {
    text-indent: 0;
}
Use the Extra CSS options to insert this.

Going off a vague memory, I took a quick look at the Layout options in conversion and there seems to be a setting to insert an indent when removing spacing between paragraphs. See the attached image.
But if you want your ePub to also be backwards compatible with ePub2, then you cannot use p:first-of-type. However, if you do as I do and use <h2>chapter header</h2> then you can use...
Code:
h2 + p {
  text-indent; 0;
}
JSWolf is online now   Reply With Quote