widows Redirect 1

Summary

The widows CSS property defines how many minimum lines must be left on top of a new page, on a paged media. In typography, a widow is the last line of a paragraph appearing alone at the top of a page. Setting the widows property allows to prevent widows to be left.

On a non-paged media, like screen, the widows CSS property has no effect.

Syntax

Formal syntax: <integer>
widows: 2
widows: 3

widows: inherit

Values

<integer>
Denotes the minimum amount of lines that can stay alone on the top of a new page. If the value is not positive, the declaration is invalid.

Example

p {
  widows: 3;
}

Specifications

Specification Status Comment
CSS Fragmentation Module Level 3 Working Draft Extends widows to apply to any type of fragment, like pages, regions or columns.
CSS Multi-column Layout Module Candidate Recommendation Recommend to consider widows in relation with columns
CSS Level 2 (Revision 1) Recommendation Initial specification.

Browser Compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 25 Not supported 8 9.2 Not supported
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support Not supported Not supported ? ? Not supported

See also

Document Tags and Contributors

Contributors to this page: Sheppy
Last updated by: Sheppy,
Hide Sidebar