CSS Property page-break-after








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

Summary

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

CSS Syntax

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

Property Values

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

Browser compatibility

page-break-after Yes Yes Yes Yes Yes




Example

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