The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's Style Sheets Reference

| Index | Current Category: Printing |
| Previous Style: ruby-position | Next Style: speak |


size

Defines the size or orientation of the page on which the element is to be printed.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

See Also:

page

Possible Values:

auto
The default page size is used.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

landscape
The page uses the landscape orientation.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

[length]
The specific width and height of the page.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

Notes:
  • If you enter only one value, the result is a square page.

portrait
The page uses the portrait orientation.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

Example:
<STYLE TYPE="text/css">
<!--
@page legal {size: 8.5in 14in}
body {page: legal}
-->
</STYLE>

| Index | Current Category: Printing |
| Previous Style: ruby-position | Next Style: speak |