View Single Post
Old 12-07-2019, 10:13 PM   #38
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,110
Karma: 92190133
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by HowlerX View Post
What's the exact CSS to prevent widows and orphans altogether?
What you wrote will work, but technically you should have another semicolon at the end of the last declaration (before the closing brace).

By doing this you are allowing widows and orphans, not preventing them.

The next question is: where to apply it? Setting it as part of the styling for normal paragraphs would probably be best for most books. Alternatively, you could apply it to body elements and everything else will inherit it.

Last edited by jhowell; 12-07-2019 at 10:20 PM.
jhowell is offline   Reply With Quote