Paged Media Properties
The Ultimate CSS Reference 362
page-break-before
page-break-before: { always | auto | avoid | left |
right | inherit } ;
This property specifies whether a page
break may, must, or shouldn??™t occur
before a block-level element??™s generated
box.
Value
always forces a page break before the
box
auto allows a page break before the box, but doesn??™t require it
Example
This style rule makes every h2 element start
at the top of a new page:
h2 {
page-break-before: always;
}
avoid tells the user agent to avoid inserting a page break before the box, if at all
possible
left forces one or two page breaks before the box, so that the next page will
be a left-hand page
right forces one or two page breaks before the box, so that the next page will
be a right-hand page
Compatibility
SPEC
version initial inherited
CSS2 auto NO
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE5.5+
FULL PARTIAL PARTIAL PARTIAL
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.
Pages:
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526