Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

pageBreakInside property

Sets or retrieves a string indicating whether a page break is allowed to occur inside the object.

CSS 2.1, Section 13.3Internet Explorer 8



HRESULT value = object.put_pageBreakInside( v);HRESULT value = object.get_pageBreakInside(* p);

Property values

Type: BSTR

auto (auto)

Default. Neither force nor forbid a page break inside the object.

avoid (avoid)

Forbid a page break inside the object, if possible.

empty string (empty string)

Behaves the same as auto.

inherit (inherit)

Inherit the value of the same property for the object's parent.

String format

avoid | auto | inherit | empty string

CSS information

Applies ToAll elements
Initial Valueauto

Standards information


This property applies when the document is printed.

Normally, Windows Internet Explorer attempts to avoid page breaks inside tables, blocks with borders, and positioned or floated elements. The IHTMLStyle6::pageBreakInside attribute extends this behavior to other elements. A value of avoid instructs the browser to start the element on the following page if there is not enough room for it on the current page.

Page-break behavior is inherited from parent objects. A potential page-break location is also influenced by the IHTMLRuleStyle::pageBreakAfter attribute of the preceding object, and/or the IHTMLRuleStyle::pageBreakBefore attribute of the following object.

This property requires Internet Explorer to be in IE8 Standards mode rendering.


The following style rule causes Internet Explorer to avoid breaking paragraphs across pages.

<style type="text/css">
@media print {
    p {
        page-break-inside: avoid;


Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]







See also

CSS How-to - Optimize Pages for Printing Using CSS



Community Additions

© 2015 Microsoft