CSS/Properties/widows

From Web Education Community Group
Jump to: navigation, search

widows

The widows property specifies the minimum number of lines in a block container that must be left at the top of a page.

Description

Values <integer> | inherit
Initial value 2
Applies to block container elements
Inherited Yes


Values

  • <integer>
    Only positive values are allowed.


  • inherit
    Takes the same specified value as the property for the element's parent.


CSS Reference

The CSS specification defines the widows property in 13.3.2 Breaks inside elements.