View Single Post
Old 04-02-2022, 02:41 AM   #1
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
p+p indent flaky

I've see a few books using this CSS:

p{margin:0;text-align:justify;}
p+p{text-indent:1.4em;}


This idea being that the first para of a section after a heading was unindented, as it should be, the following indented.

And this works in epub readers. But when converted to AZW3 and loaded in a Kindle (PW3 with 5.10.3) I found it erratic. Every few pages a paragraph would be unindented. Checking the source, the paras were all <p>.

Also, if I changed the fontsize, reflowed the text, often the para in question would become indented.

So is this a bug in the AZW3 or is the Kindle renderer itself buggy? Has this been fixed in later versions?

In any case, I'm giving up using this "+" trick as unreliable.

Last edited by AlanHK; 04-02-2022 at 02:52 AM.
AlanHK is offline   Reply With Quote