HTML and CSS Reference
In-Depth Information
Example
p {padding-top: 10px; padding-bottom: 100px;}
.flush {padding-top: 0;}
#demo2 {padding-top: 50%; padding-left: 10%}
Compatibility
CSS 1, 2, 3 IE 4+ (buggy), 5+ Netscape 4+ (buggy), 6+, Firefox 1+ Opera 4+, Safari 1+
Note
• Elements may have default paddings on them and these values may vary by user
agent. Because of this inconsistency, many developers prefer to clear all padding
values globally with a wildcard rule like * {padding: 0;} and build up
individual values.
page-break-after
This property is used to control page breaks when printing a document after the bound
element box ends.
Syntax
page-break-after: always | auto | avoid | left | right | inherit
A value of always forces a page break after the associated element. A value of avoid
attempts to avoid a page break after the element. A value of left forces one or two page
breaks after the element so that the next page is considered a left page. A value of right
forces one or two page breaks after the element so the next page is considered a right page.
The default value of auto neither forces nor forbids a page break, allowing the user agent to
decide how to break the content during print.
Examples
#breakitdown {page-break-after: always;}
.getitright {page-break-after: right;}
Compatibility
CSS 2, 3
IE 4+
Netscape 6+, Firefox 1+
Opera 7+, Safari 1+
page-break-before
This property is used to control page breaks when printing a document before the bound
element box starts.
Syntax
page-break-before: always | auto | avoid | left | right | inherit
A value of always forces a page break before the associated element is encountered. A value
of avoid attempts to avoid a page break after the element. A value of left forces one or
two page breaks after the element so that the next page is considered a left page. A value of
Search WWH ::




Custom Search