Quote:
Originally Posted by fluoresce
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.