CSS PAGE-BREAK-AFTER

This property specifies the page-breaking behavior that should occur after an element box and on what side of the page the content that follows should resume on. Page breaks are not allowed in absolutely positioned elements.

Example
1
2
3
p {
  page-break-after: always
}
1
<p style="page-break-after: always">text in the paragraph</p>

Possible Values

inherit: Explicitly sets the value of this property to that of the parent.
auto: Insert a page break before the element as necessary.
avoid: Avoid inserting a page break before the current element box.
left|right: left: Force one or two page breaks after the current element box until a blank left page is reached. right: Force one or two page breaks after the current element box until a blank right page is reached.
always: Always force a page break before the current element box.
{empty string]: No property value is used in this case. A page break is not inserted before the current element box.