Easy Tutorial
❮ Prop Fieldset Type Event Ononline ❯

orphans Property


Definition and Usage

The orphans property sets or returns the minimum number of lines that must be left at the bottom of a page (for printing or print preview).

The orphans property only affects block-level elements.

Tip: orphans:5 means that at least 5 lines must be visible above a page break.

Tip: The widows property sets or returns the minimum number of lines that must be left at the top of a page.

Syntax

Set the orphans property:

Return the orphans property:

Value Description
number An integer that specifies the minimum number of visible lines. The default value is 2.
inherit The value of the orphans property is inherited from the parent element.

Browser Support

Only Opera supports the orphans property.


Example

Change the orphans property for printing or print preview:

❮ Prop Fieldset Type Event Ononline ❯