CSS Property page-break-inside








The page-break-inside property add a page break inside a specified element.

Summary

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

CSS Syntax

page-break-inside: auto|avoid|initial|inherit;

Property Values

auto
Default. Automatic page breaks
avoid
Avoid page break inside the elemen

Browser compatibility

page-break-inside Yes Yes Yes Yes Yes




Example

@media print {
    p {page-break-inside: avoid;}
}