
The Complete Idiot's Style Sheets Reference
| Index
| Current Category: Printing |
| Previous Style: min-width
| Next Style: outline
|
orphans
Sets the minimum number of lines between the start of a block element and a potential page break for the break to occur within the element.
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS2 and later |
Not supported |
Not supported |
Notes:
- Orphans are lines from the start of a block element (such as a paragraph) that appear by themselves at the bottom of a page.
- For example, suppose this property is set to 3. If a potential page break occurs within an element, the browser uses the following to determine whether the page break is okay within the element:
- If there are fewer than 3 lines from the start of the element to the page break, the page break occurs before the element.
- If there are 3 or more lines from the start of the element to the page break, the page break is inserted within the element.
See Also:
-
page-break-after,
page-break-before,
page-break-inside,
widows
Possible Values:
- [integer]
The minimum number of lines.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS2 and later |
Not supported |
Not supported |
Example:
<P STYLE="orphans: 3">
With malice toward none, with charity for all, with firmness
in the right, as God gives us to see the right, let us strive on
to finish the work we are in, to bind up the nation's wounds,
to care for him who shall have borne the battle, and for his
widow and his orphan, to do all which may achieve and
cherish a just and lasting peace among ourselves, and with
all nations. Abraham Lincoln
</P>
| Index
| Current Category: Printing |
| Previous Style: min-width
| Next Style: outline
|
|