CSS widows Property

Description

The widows property specifies the minimum number of line boxes of a block container that must be left in a fragment after a break.

Initial value
2
Applies to
Block level elements
Inherited
Yes
Media
Visual, Paged
Computed value
As specified
Animatable
No
CSS Version
CSS2, CSS3
JavaScript syntax
object.style.widows

Syntax

Formal syntax: <integer>

widows: 3;

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

.class
   {widows: 4;
}

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
81225X9.21.3
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
≤3725XX1X