Page Controls
These stylesheet commands help to determine how the web page appears when output onto paper:
- marker-offset can be auto, (the default) or a length.
- marks can be crop, cross, or none.
- orphans is an integer indicating how many lines from a end of a block can appear at the top of a new page without forcing the whole block onto the new page.
- page can be auto or an identifier.
- page-break-before and page-break-after can be set to always to force a page break before or after the associated text when it is printed. The default is auto which will break to a new page when the current page is full.
- page-break-inside can be auto (the default) or avoid which will try to keep the whole block on the same page.
- size can be auto (the default), two lengths representing the page width and length, portrait, or landscape.
- widows is an integer indicating how many lines from a start of a block can appear at the bottom of a page without forcing the whole block onto the new page.
Examples
@page {size: 21cm 29.7cm; margin:2cm;}
@page:first {size:landscape;}


