CSS Property page-break-before








The page-break-before property can add a page break before a specified element.

Summary

Initial value
auto
Inherited
no
CSS Version
CSS2
JavaScript syntax
object.style.pageBreakBefore="always"
Animatable
no

CSS Syntax

page-break-before: auto|always|avoid|left|right;

Property Values

auto
Default. Automatic page breaks
always
Always insert a page break before the element
avoid
Avoid page break before the element
left
Insert page breaks before the element to format the next page as a left page
right
Insert page breaks before the element to format the next page as a right page

Browser compatibility

page-break-before Yes Yes Yes Yes Yes




Example

@media print {
    footer {page-break-before: always;}
}