CSS widows Property


The widows CSS property specifies the minimum number of lines that must be displayed at the top of a page, region, or column in a block container. A widow is the last line of a paragraph that appears alone at the top of a page in typography.

If a paragraph cannot fit entirely on one page, it is split wherever possible. As a result, single lines of a paragraph can appear on one page before continuing on the next.

Because this is usually undesirable, many word processors require at least two lines to be left on an old page, rather than one. The orphan property has a similar effect. You can either give it a positive number or inherit it.

Syntax

Example


Property Values

Value Description
integer Specifies the minimum number of lines required at the top of a page or column. Negative values are not permitted.
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Property Chrome Firefox Safari Edge / IE Opera
widows 25.0 Not supported 7.0 8.0 10.0