HTML and CSS Reference
In-Depth Information
Name
page-break-after
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 after 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 after the element to make the next page be a left-hand page; sim-
ilarly,
right
is used for a right-hand page.
This property is essentially replaced by
break-after
, but browser support for
page-break-
after
may be stronger.
Examples:
section {page-break-after: always;}
h1 {page-break-after: avoid;}