pageBreakAfter property

[This documentation is preliminary and is subject to change.]

Sets or retrieves a value indicating whether a page break occurs after the object.

CSS 2.1, Section 13.3.1

Syntax

Integer value = object.put_pageBreakAfter(BSTR v);Integer value = object.get_pageBreakAfter(BSTR* sBreak);

Property values

Type: BSTR

always (always)

Always insert a page break after the object.

auto (auto)

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

avoid (avoid)

Internet Explorer 8. Forbid a page break after the object, if possible.

empty string (empty string)

Behaves the same as auto.

inherit (inherit)

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

left (left)

Currently behaves the same as always.

right (right)

Currently behaves the same as always.

String format

auto | always | avoid | left | right | inherit

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Standards information

Remarks

This property applies when printing the document. This property does not apply to the br or hr elements.

If there are conflicts between this property and the page-break-before value on the object previously displayed in the browser, the value that results in the largest number of page breaks is used.

Page breaks are not permitted inside positioned objects.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

DLL

Mshtml.dll

See also

Reference
page-break-inside
page-break-before
Conceptual
CSS How-to - Optimize Pages for Printing Using CSS

 

 

Build date: 1/23/2012

Community Additions

Show: