View Single Post
Old 06-05-2011, 06:18 PM   #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,756
Karma: 145864619
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 MacEachaidh View Post
But where's this behaviour coming from? I can't find anything in the CSS code that does it - does such a thing even exist in CSS? - but my reader uses ADE to display books, so is it one of those hard-coded secret behaviours in ADE?
The behavior is actually coming from ADE. By default ADE uses a widow & orphan of 2 so a paragraph has to conform that that or it drops to the top of the next page.

There is a very simple way around it. Put the following into the body element in the CSS...

Code:
widows: 0;
orphans: 0;
That will give you just what you want. I do it all the time.

In fact, here is one of the body elements I use...

Code:
body {
  font-family: "Charis SIL", serif;
  widows: 0;
  orphans: 0;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  text-align: justify;
  font-size: 95%
}

Last edited by JSWolf; 06-05-2011 at 07:43 PM.
JSWolf is offline   Reply With Quote