View Single Post
Old 05-24-2017, 01:39 AM   #14
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by fluoresce View Post
Code:
h2, h3, h4, h5, h6 {
page-break-inside: avoid;
page-break-after: avoid;
}
...

Should I not use this code? Can it cause problems? Is it well supported?
At least in my experience, page-break-inside: avoid; is generally well supported, though readers can ignore it if it is impossible to fit the contents of the block element on a single page.

On the flip side, page-break-after: is almost guaranteed to be completely ignored unless the value is always. There may be certain situations where it works with avoid, but you're probably just wasting bytes.
dgatwood is offline   Reply With Quote