Style widows Property
Style widows Property
The widows property is used to either set or return the minimum number of lines that must be present at top of an element. It is basically used for printing or print preview and only works on block-level elements. For example, widows:5 means that at least 5 lines must be visible below the page break.
Syntax:-
Its syntax is:- object.style.widows OR object.style.widows = number | initial | inherit
Return:-
Its return is:- a string containing minimum number of lines to print at top of 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. |