B.72. orphans

This property affects the position of page breaks, when the user prints the page from his or her browser. With this property, you can specify the minimum number of lines in a block before a page break can occur.

For example, if a paragraph element had six lines and the page size called for a page break to occur after the second line, then an orphans setting of 3 would force the page break to occur before the paragraph so that the first 3 lines could appear on the same page.

Inherited: Yes

See also: Section B.125widows

B.72.1. Value

A positive integer.

Initial value: 2

B.72.2. Compatibility

CSS Version: 2

This property is supported by Mozilla browsers (including Netscape 6 or later), Opera 7, and Internet Explorer 5 for Macintosh. ...

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.