Javascript Reference - HTML DOM Style orphans Property








The orphans property sets or gets the minimum number of lines that must be visible at the bottom of a page for printing or print preview.

Browser Support

Style orphans Yes 9.0 No No Yes

Syntax

Return the orphans property:

var v = object.style.orphans 

Set the orphans property:

object.style.orphans='number|initial|inherit'




Property Values

Value Description
number An integer to set the minimum number of visible lines. Negative values are not allowed. The default value is 2.
initial Set to default value
inherit Inherit from parent element.

Technical Details

Default Value: 2
Return Value: A string representing the minimum number of lines to print at the bottom of the page
CSS Version CSS2