Change the orphans and check print or print preview:
The orphans property sets or returns the minimum number of lines for an element that must be visible at the bottom of a page (for printing or print preview).
The orphans property only affects block-level elements.
Tip: orphans:5 means that at least 5 lines must be visible above the page break.
Tip: See the widows property to set or return the minimum number of lines for an element that must be visible at the top of a page.
The orphans property is supported in Internet Explorer, Opera and Chrome.
Note: The orphans property is not supported in Firefox or Safari. The property is not supported in IE7 and earlier. IE8 requires a !DOCTYPE. IE9 and later has full support.
Return the orphans property:
Set the orphans property:
Value | Description |
---|---|
number | An integer that specifies the minimum number of visible lines. Negative values are not allowed. The default value is 2 |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | 2 |
---|---|
Return Value: | A String, representing the minimum number of lines to print at the bottom of the page |
CSS Version | CSS2 |