CSS widows Property
Description
The widows property controls how many lines of a block-level element are allowed to appear at the start of a new page, column, or other fragmentation context when the element is split. In practical terms, it prevents single or very few lines of a paragraph from being stranded alone at the top of a page or column after a break, preserving visual continuity and readability in paged or multicolumn layouts. This property is about typographic flow rather than visual styling — it influences where the rendering engine inserts a break when content is fragmented.
Because it only affects fragmented contexts, widows is most relevant for printed output, paged media, or multi-column layouts where content can be split across boundaries. When the constraint imposed by the property cannot be met in the remaining space, rendering engines typically move the entire element (or at least enough lines) to the next fragment to honor the rule. That behavior can change where breaks naturally occur, which may increase whitespace at the end of a fragment or shift subsequent content, so designers should consider its effect on overall pagination and flow.
This property interacts with other fragmentation and typographic rules. For example, orphans sets a related constraint for the bottom of a fragment and is often used in tandem with widows to maintain balanced paragraphs across breaks. Properties that affect line metrics, such as line-height, will influence how much space a paragraph consumes and therefore how the widows rule is applied. Likewise, fragmentation control properties like break-inside can interact with it, since forbidding breaks inside an element may force a different strategy for avoiding widowed lines.
In practice, designers use widows to improve legibility and professional polish in long-form content and printed materials. It’s a subtle but effective tool for preventing awkward single-line starts that disrupt reading. When applying it, test with realistic content and across the relevant output modes (paged print, multi-column, etc.), because enforcing the rule can cause unexpected redistribution of content and white space depending on the available fragment heights and other layout constraints.
Definition
- Initial value
- 2
- Applies to
- Block level elements
- Inherited
- Yes
- Computed value
- As specified
- Animatable
- No
- JavaScript syntax
- object.style.widows
Syntax
widows: <integer>
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
Browser Support
The following information will show you the current browser support for the CSS widows property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported in some modern browsers, but not all.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
