
The Complete Idiot's Style Sheets Reference
| Index
| Current Category: Printing |
| Previous Style: page-break-after
| Next Style: page-break-inside
|
page-break-before
Determines if and how a page break is inserted before an element.
Support:
-
Notes:
- You can't use page breaks with elements that have their position property set to absolute.
See Also:
-
orphans,
page-break-after,
page-break-inside,
widows
Possible Values:
- "" (empty string)
A page break is never inserted before the element.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
Not supported |
5.0 and later |
Not supported |
- always
A page break is always inserted before the element.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS2 and later |
4.0 and later |
Not supported |
- auto
Page breaks are inserted as needed.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS2 and later |
4.0 and later |
Not supported |
- avoid
A page break is never inserted before the element.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS2 and later |
Not supported |
Not supported |
- left
One or two page breaks are inserted before the element to ensure that the following page is formatted as a left page.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS2 and later |
Not supported |
Not supported |
- right
One or two page breaks are inserted before the element to ensure that the following page is formatted as a right page.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS2 and later |
Not supported |
Not supported |
Example:
<BLOCKQUOTE STYLE="page-break-before: avoid">
It's been my policy to view the Internet not as an 'information
highway,' but as an electronic asylum filled with babbling
loonies. Mike Royko
</BLOCKQUOTE>
| Index
| Current Category: Printing |
| Previous Style: page-break-after
| Next Style: page-break-inside
|
|