CSSorphans Property
Example
When printing, display at least 4 lines at the bottom and 2 lines at the top of each page:
@media print {
orphans: 4;
widows: 2;
}
orphans: 4;
widows: 2;
}
Definition and Usage
Theorphans property specifies the minimum number of lines that must be left at the bottom of a page or column.
Tip: Also look at thewidows property.
| Default value: | 2 |
|---|---|
| Inherited: | yes |
| Animatable: | no.Read aboutanimatable |
| Version: | CSS3 |
| JavaScript syntax: | object.style.orphans = "3" |
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
| Property | |||||
|---|---|---|---|---|---|
| orphans | 25.0 | 8.0 | Not supported | 3.1 | 10.0 |
CSS Syntax
orphans:integer|initial|inherit;
Property Values
| Value | Description |
|---|---|
| integer | Specifies the minimum number of lines that must be left at the bottom of a page or column. Negative values are not allowed |
| initial | Sets this property to its default value.Read aboutinitial |
| inherit | Inherits this property from its parent element.Read aboutinherit |

