Copyright © tutorialspoint.com

CSS - widows

previous next


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:

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

Copyright © tutorialspoint.com