CSS PAGE-BREAK-INSIDE

This property specifies the page-breaking behavior that should occur inside an element’s rendering box. Page breaks are not allowed in absolutely positioned elements.

Example
1
2
3
p {
  page-break-inside: auto
}
1
<p style="page-break-inside: auto">Text in paragraph</p>

Possible Values

inherit: Explicitly sets the value of this property to that of the parent.
auto: Insert page breaks inside the element box as necessary.
avoid: Avoid inserting page breaks inside the current element box if possible.