basics of website design banner photo

HTML

HTML 5

CSS 2.1

CSS 3

Reference

CSS orphans and widows properties.

These two properties relate to paged media such as printed pages, transparencies or pages that are displayed on computer screens. They govern how many lines must be left at the top and bottom of pages when a page-break occurs inside block container elements, orphans dealing with the bottom of the page and widows with the top.

Possible Values

  • an integer - the number of lines to leave - the default value is '2'.
  • inherit - the value is inherited from the parent element.

Code Examples

div.bottom{orphans: 4;}

div.top{widows: 4;}

CSS 2.1 Property List