CSS · Properties — CSS Fragmentation

widows

The CSS widows property. Initial value: 2. Inherited.

Syntax
widows: <integer>

Example

Try it

Notes

Media: visual. Applies to: blockContainerElements. Computed value: asSpecified.

More in this group

box-decoration-break break-after break-before break-inside orphans

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course