CSS/Properties/page-break-after

From Web Education Community Group
Jump to: navigation, search

page-break-after

The page-break-after property sets page breaks after an element.

Description

Values auto | always | avoid | left | right | inherit
Initial value auto
Applies to block-level elements (but see text)
Inherited No


Values

  • auto
    Neither force nor forbid a page break after the generated box.


  • always
    Always force a page break after the generated box.


  • avoid
    Avoid a page break after the generated box.


  • left
    Force one or two page breaks after the generated box so that the next page is formatted as a left page.


  • right
    Force one or two page breaks after the generated box so that the next page is formatted as a right page.


  • inherit
    Takes the same specified value as the property for the element's parent.


CSS Reference

The CSS specification defines the page-break-after property in 13.3.1 Page break properties.