widows
Sets the minimum number of lines of a paragraph that must appear at the top of a page.
Syntax
{ widows:
nLines }
Possible values
nLines
Variant that specifies or receives the minimum number of lines to print at the top of a page.
The property has a default value of 0. It is not inherited.
Remarks
This property applies when the document is printed. If there are fewer lines than necessary to satisfy this rule, the lines are moved to the following page. The widows property takes precedence over the orphans property.
Examples
The following style rule ensures that at least three lines of a paragraph appear at the bottom and top of each printed page.
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<style type="text/css">
@media print {
p {
widows:3;
orphans:3;
}
}
</style>
Standards information
This documentation is preliminary and subject to change.
Applies to
a, address, b, big, blockquote, body, caption, center, cite, code, col, colgroup, dd, dfn, dir, div, dl, dt, em, fieldset, form, hn, html, i, kbd, label, legend, li, listing, marquee, menu, ol, p, pre, s, samp, small, span, strike, strong, style, sub, sup, table, tbody, td, textarea, tfoot, th, thead, tr, tt, u, ul, var, xmp
Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.