Easy Tutorial
❮ Prop Fileupload Form Prop Color Disabled ❯

Style pageBreakAfter Property


Definition and Usage

The pageBreakAfter property sets or returns the page-break behavior after an element (for printing or print preview).

Note: The pageBreakAfter property does not affect absolutely positioned elements.

Syntax

Set the pageBreakAfter property:

Return the pageBreakAfter property:

Value Description
auto Default. Inserts a page break after the element if necessary.
always Always inserts a page break after the element.
avoid Avoids inserting a page break after the element.
"" (empty string) Does not insert a page break after the element.
left Inserts one or two page breaks after the element, until a blank left page is reached.
right Inserts one or two page breaks after the element, until a blank right page is reached.
inherit The value of the pageBreakAfter property is inherited from the parent element.

Browser Support

All major browsers support the pageBreakAfter property.

Note: IE7 and earlier versions do not support the "inherit" value. IE8 supports "inherit" only if an !DOCTYPE is specified. IE9 supports "inherit".


Example

Always set a page break after each <p> element with id="footer":


❮ Prop Fileupload Form Prop Color Disabled ❯