HTML and CSS Reference
In-Depth Information
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
#breakitdownagain {page-break-before: always;}
.lefty {page-break-before: left;}
Compatibility
CSS 2, 3
IE 4+
Netscape 6+, Firefox 1+
Opera 7+, Safari 1+
page-break-inside
This property is used to force or prohibit a printing page break within an element.
Syntax
page-break-inside: always | auto | avoid | left | right | inherit
A value of always forces a page break at any place within the element bound. 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
#breakitdownyetagain {page-break-inside: always;}
.nobreaks {page-break-inside: avoid;}
Compatibility
CSS 2, 3
IE 8+
Netscape 6+, Firefox 1+
Opera 7+, Safari 1+
position
This property defines how an element is positioned relative to other elements.
Syntax
position: absolute | fixed | relative | static | inherit
When positioned absolute , the left , right , top , and bottom properties can be used to
define the element's precise location, using the affected element's upper-left corner (0,0) as
reference. Because elements can contain other elements, a position of 0,0 is not necessarily
the upper-left corner of the browser. When a relative position is used, offsets will be
related to the object's natural position in the document flow. An element with absolute
position may be set to defined coordinates but will scroll with a window. However, an
object with a fixed position value will stay in position onscreen as things scroll.
Search WWH ::




Custom Search