References : Style sheets


Paged media properties

A Web page is normally rendered as a continuous page. CSS2 has introduced the concept of paging, which permits a document to be divided into one or more pages so that it can be output on paper, transparencies, computer screens, and so on. The following properties and values set page sizes, margins, breaks, and handle lines left as widows or orphans.

marks | orphans | page | page-break-after, page-break-before | page-break-inside | size | widows

marks
Specifies whether cross marks and/or crop marks should appear outside the page box. This property is used for high-quality printing.
 
CSS2 valuecrop | cross | none | inherit
 
Initial valuenone
 
Applied to Page context.
 
Inherited N/A.
 
 Top
orphans
Sets the minimum number of lines in the current paragraph that must be left at the bottom of a page.
 
CSS2 value<integer> | inherit
 
Initial value2
 
Applied to Block-level elements.
 
Inherited Yes.
 
 Top
page
Defines a special page type to be used for rendering an element.
 
CSS2 value<identifier> :left | :right | auto
 
Initial valueauto
 
Applied to Block-level elements.
 
Inherited Yes.
 
Notes By adding :left or :right, you can force the element to appear on a left or on a right page.
 
 Top
page-break-after, page-break-before
Defines whether a page break should occur after or before the rendered element.
 
CSS2 valueauto | always | avoid | left | right | inherit
 
Initial valueauto
 
Applied to Block-level elements.
 
Inherited No.
 
 Top
page-break-inside
The page break occurs inside the parent element.
 
CSS2 valueavoid | auto | inherit
 
Initial valueauto
 
Applied to Block-level elements.
 
Inherited Yes.
 
 Top
size
Specifies the size and orientation of a page box.
 
CSS2 value<length> | auto | portrait | landscape | inherit
 
Initial valueauto
 
Applied to Page context.
 
Inherited N/A.
 
 Top
widows
Sets the minimum number of lines in the current paragraph that must be left at the top of a page.
 
CSS2 value<integer> | inherit
 
Initial value2
 
Applied to Block-level elements.
 
Inherited Yes.
 
 Top