Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

pageBreakBefore property

Sets or retrieves a string indicating whether a page break occurs before the object.

CSS 2.1, Section 13.3.1

Syntax

Integer value = object.put_pageBreakBefore( v);Integer value = object.get_pageBreakBefore(* sBreak);

Property values

Type: BSTR

always (always)

Always insert a page break before the object.

auto (auto)

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

avoid (avoid)

Internet Explorer 8. Forbid a page break before 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 the value of this property and the IHTMLRuleStyle::pageBreakAfter property of 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 [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

Reference
IHTMLStyle6::pageBreakInside
IHTMLRuleStyle::pageBreakAfter
Conceptual
CSS How-to - Optimize Pages for Printing Using CSS

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.