These printing properties allow you to specify the size of a printed page and the
exact locations for page breaks that affect the printing of the document.
Property
|
Description
|
Values
|
Example
|
@page
|
Sets the size of a page
|
|
@page {size 8.5in 11in; margin: 1in}
|
page-break-before
|
Sets whether a page break occurs before a tag
|
auto
always
left
right
|
{ page-break-before:always; }
|
page-break-after
|
Sets whether a page break occurs after a tag
|
auto
always
left
right
|
{ page-break-before:auto; }
|
page-break-inside
|
Sets whether a page break occurs within a tag
|
auto
avoid
|
{ page-break-inside:auto; }
|
marks
|
Specifies whether to display crop marks, cross
marks or both
|
crop
cross
none
|
{marks: crop}
|
orphans
widows
|
Sets the minimum number of lines that can appear
at the top and bottom of the page
|
|
|
|
|
More information
Quick CSS reference sheets
Font properties
Text properties
Color property
Background properties
Box properties
Positioning and display properties
List properties
Generated content properties
Dynamic outline properties
Table properties
Pseudo class and element properties
Printing properties
Media type properties
Aural properties
|