View Single Post
Old 07-08-2016, 05:08 AM   #9
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Phssthpok View Post
I have <h3> specified as "page-break-after: avoid", but despite this <h3> headings sometimes appear as the last line on a page. Changing "avoid" to "always" appears to work.
Avoid does not mean never, it means "Avoid page break after the element (if possible)". And how clever the software is in interpreting avoid will vary. Clearly avoiding the break by moving the header to the next page isn't something the Kindle does.

"page-break-after: avoid" is NOT the equivalent of the "keep-with-next" attribute in page layout software. It's advice, not a requirement.
pdurrant is offline   Reply With Quote