View Single Post
Old 08-22-2010, 03:44 AM   #50
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,563
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
Well, I'm not so sure of that. The way to the CSS does it is to use...

body {
widows: 0;
orphans: 0
}

So given that 0 is off and any other number is on. Maybe we are both right? I dunno exactly.
Not always 0 is "off". In this case, 0 means that the minimum number of lines allowed before/after a pagebreak is 0, i.e., that any number is allowed, included 1, which is when a widow/orphan appears.

The default is 2, which means that a minimum of 2 lines is needed before/after a pagebreak, preventing the occurrence of widows/orphans, because a single line is less than the minimum of 2 lines.

But this CSS property can do nothing against chapters ending with one-line paragraphs, for instance. In this case, a pagebreak before this last paragraph is allowed, but it would have been avoided by all means by a human typesetter.
Jellby is offline   Reply With Quote