Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

Printing properties

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