CSS WIDOWS

  • Share
  • Share

This property specifies the minimum number of lines of content for the current element that must be left at the top of a page in a paged display environment.

 

Example

p { widows: 1 }

<p style=”widows: 1″>test text in the paragraph</p>

 

Possible Values

Value Description
inherit Explicitly sets the value of this property to that of the parent.
[integer] Specifies an integer value representing the minimum number of lines of content that must be left at the top of a page.