Style orphans Property
Style orphans Property
The orphans property is used to either set or return the minimum number of lines for an element that must be visible at the bottom of a page. It only works with block-level elements and is used for printing or print preview purposes. For example, orphans:4 means that at least 4 lines must be visible above the page break.
Syntax:-
Its syntax is:- object.style.orphans OR object.style.orphans = number | initial | inherit
Return:-
Its return is:- a string containing the minimum number of lines to print at the bottom of the page
Further Explanation:-
Value | Description |
---|---|
number | An integer that specifies the minimum number of visible lines. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |