Specifies the size and orientation of a page for print output.
Platform Support
IE | Netscape | Mozilla | Opera | Safari | no | 6.0+ | 1.0+ | 7.0+ | no |
---|
Usage
[width] [height] [size-value]. Example values: 8.5in 10in portrait, 14 in 10 in, landscape, etc.
Values
* | Specify a value for size that is not on this list. |
auto | Page size to be determined by window or user settings. |
portrait | Portrait layout on the page. |
landscape | Landscape layout on the page. |
Example
To specify an 10x8 inch page that prints as landscape, use the following syntax: body {size: landscape 10in 8in;}
.
Availability
W3C CSS2