CSS orphans Property

Description

The orphans property refers to the minimum number of lines in a block container that must be left at the bottom of the page. This property is normally used to control how page breaks occur.

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.orphans

Syntax

Formal syntax: <integer>

orphans: 4;

Values

  • <integer>Only positive values are allowed.

Example

.class
   {orphans: 3;
}

Browser Support

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