CSS - widows


Description:

The widows property is used in paged media to control line breaks by specifying the minimum number of lines in a paragraph that should be left at the top of the page.

Possible Values:

  • integer: Any length unit. Negative length values are not permitted for this property.

Applies to:

All the Block level elements

DOM Syntax:

object.style.widows="5";

Example:

Here is the example to create 4 lines at the bottom and 3 lines at the top of each page:

<style tyle="text/css">
<!--
@page{orphans:4; widows:2;}
-->
</style>
     





Spacer Bottom Left Corner ImageBottom Right Corner Image
Valid XHTML 1.0 Strict  Valid CSS! Check the accessibility of this site according to U.S. Section 508