The page-break-after
property adds a page-break after the element that is specified.
This property cannot be used on an empty <div>
or absolutely positioned elements. page-break-before
, page-break-after
, and page-break-inside
are all used to designate how a document will print.
@media print {
.section-two { page-break-after: always; }
}
auto
Default value. Page breaks are automatic.
always
Always insert a page-break after the specified element.
avoid
If possible, avoid page-break after the specified element.
left
Insert a page-break after the specified element so the next element is formatted as a left page.
right
Insert a page-break after the specified element so the next element is formatted as a right page.
initial
Sets the property to its default value.
Have a code example of page-break-after
? Submit a codepen.io demo and we'll showcase it here ↴