Fandom

Widows

648pages on
this wiki
Add New Page
Comments0 Share

The widows property is used in CSS and certain HTML elements. In printing, a "widow" is the last line of a paragraph appearing alone at the top of a page. This property avoids widows by specifying the minimum number of lines of a paragraph that appear at the top of a page when a Web page is printed. This property applies to block-level elements. To specify the minimum number of lines to be left at the bottom of the page, use orphans.

ValuesEdit

Value Description
<number> Uses a positive whole number. The default value is 2, which is the minimum number of lines of a paragraph that must appear at the top of a page.
inherit Uses the same computed value as the parent element for this property.


HTML example:

<p style="widows:5;">
TEXT
</p>


CSS example:

p {
   widows:5;
}

See AlsoEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.