View Single Post
Old 02-27-2023, 10:34 AM   #2
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,862
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 Phssthpok View Post
My nice new Libra 2 displays pages of quite widely varying length on any book I read. I have put "widows:1; orphans:1;" in the CSS for <body> in one of the books to see if this fixes it, but it doesn't. All my books are EPUBs.

The device seems to be using 3 as the value for both -- a 4-line para gets shifted in its entirety onto the next page, for example. The effect is quite jarring; I always feel like I'm at the end of a chapter when I read one of the short pages (21 lines rather than the normal 24 at the font size I'm using) and then I turn the page to discover that there's more...

Is there anything else I can do to stop this happening?
This is the CSS code I use. It works because I make sure there are no other widows and orphans in the CSS code. Also, some eBooks have multiple CSS and I make sure there's none there as well.
Code:
body {
  widows: 1;
  orphans: 1;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  text-align: justify;
}
JSWolf is offline   Reply With Quote