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: padding-top | Next Style: page-break-after |


page

Specifies the type of page on which an element should be printed.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

See Also:

size

Possible Values:

auto
The default page type is used.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

[identifier]
The name of a page type.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

Notes:
  • You use the @page element to define a page type. For example, the following style defines a page type named "legal":
    <STYLE TYPE="text/css">
    <!--
    @page legal {size: 8.5in 14in}
    -->
    </STYLE>
    

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

| Index | Current Category: Printing |
| Previous Style: padding-top | Next Style: page-break-after |