Little Web Hut

CSS 2.1 Reference: page-break-before Property

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

The page-break-before 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 before 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 before the element's box.
  • always - Force a page break before the element's box.
  • avoid - Avoid a page break before the element's box.
  • left - Force one or two page breaks before the element's box to cause the next page to be a left page.
  • right - Force one or two page breaks before 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