Little Web Hut

CSS 2.1 Reference: page-break-after Property

CSS page-break-after Property
Syntax
selector {page-break-after: value;}
  • value is specified by using one of the following keywords: auto, always, avoid, left, right, or inherit.
Usage

The page-break-after property is used with paged media. Paper, and discrete pages displayed on a computer screen, are both examples of paged media. This property describes how page breaks should be handled after the current element's box.

This property is specified by using a keyword according to the syntax shown above.

Keywords
  • auto - A page break is not forced or prevented after the element's box.
  • always - Force a page break after the element's box.
  • avoid - Avoid a page break after the element's box.
  • left - Force one or two page breaks after the element's box to cause the next page to be a left page.
  • right - Force one or two page breaks after the element's box to cause the next page to be a right page.
  • inherit - The inherit keyword is used to specify that the value for this property should be taken from the parent element. If inherit is used with the root element, then the initial value for this property will be used.
Applies To Block level elements
Inherited No
Initial Value auto