Export (0) Print
Expand All

orphans property

Sets or retrieves the minimum number of lines of a paragraph that must appear at the bottom of a page.

CSS 2.1, Section 13.3Internet Explorer 8

 

Syntax

HRESULT value = object.put_orphans( v);HRESULT value = object.get_orphans(* p);

Property values

Type: VARIANT

the minimum number of lines to print at the bottom of a page.

String format

integer

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value0

Standards information

Remarks

This property applies when the document is printed. If there are fewer lines than necessary to satisfy this rule, the lines are moved to the following page. The IHTMLCurrentStyle5::widows attribute takes precedence over the IHTMLCurrentStyle5::orphans attribute.

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

Examples

The following style rule ensures that at least three lines of a paragraph appear at the bottom and top of each printed page.


<meta http-equiv="X-UA-Compatible" content="IE=8" />
<style type="text/css">
@media print {
    p {
        widows:3;
        orphans:3;
    }
}
</style>

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLCurrentStyle5::widows

 

 

Community Additions

ADD
Show:
© 2014 Microsoft