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

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