Tutorials Point


  CSS Home

  CSS Reference
  Pseudo Classes & Elements

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

CSS - widows


previous next AddThis Social Bookmark Button


Advertisements

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>


previous next Printer Friendly

Advertisements


  

Advertisements