HTML and CSS Reference
In-Depth Information
Name
page-break-before
Values:
auto
|
always
|
avoid
|
left
|
right
Initial value:
auto
Applies to:
Block-level elements
Inherited:
No
Computed value:
Same as declared value
Description:
Defines whether one or more page breaks should be placed before an element. Although it is
theoretically possible to force breaks with
always
, it is not possible to guarantee prevention;
avoid
asks the user agent to avoid inserting a page break if possible. The keyword
left
is
used to insert enough breaks before the element to make the page be a left-hand page; simil-
arly,
right
is used for a right-hand page.
This property is essentially replaced by
break-before
, but browser support for
page-break-
before
may be stronger.
Examples:
section {page-break-before: always;}
h2 {page-break-before: avoid;}