O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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; similarly, 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;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required