Style Object
The pageBreakInside property sets or returns the page-break behavior inside an element (for printing or print preview).
Note: The pageBreakInside property has no effect on absolutely positioned elements.
Set the pageBreakInside property:
Return the pageBreakInside property:
| Value | Description |
|---|---|
| auto | Insert a page break inside the element if necessary. This is default |
| avoid | Avoid a page break inside an element |
| inherit | The value of the pageBreakInside property is inherited from parent element |
![]()
The pageBreakInside property is only supported in Internet Explorer and Opera.
Note: The value "inherit" is not supported in IE7 and earlier. IE8 requires a !DOCTYPE. IE9 supports "inherit".
Tip: Avoid page-break properties inside tables, floating elements, and block elements with borders.
Avoid a page break inside the <p> element with id="footer":
Style Object
Your message has been sent to W3Schools.