@page
Sets the dimensions, orientation, and margins of a page box in a style sheet.
Syntax
@page
sPageSelector{
sRules }
Possible values
sPageSelector
String that specifies one of the following page types:
:first |
Rule applies to the first page in the collection. |
:left |
Rule applies to pages on the left side of the binding (verso pages). |
:right |
Rule applies to pages on the right side of the binding (recto pages). |
sRules
String that specifies one or more rules in a style sheet.
Remarks
The rule has no default value.
The page box is a rectangular region that contains two areas, the page area and the margin area. The page area contains the page's contents, such as text and graphics, and the margin area surrounds the page's contents.
Although @page rules are represented in the cascading style sheets object model, the rules are not used by the default print template for Internet Explorer. The rules can be used by print templates developed for applications that host MSHTML. Attributes such as size and margin, which are not explicitly supported, are exposed as expando properties in these applications.
Standards information
This rule is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) .
See also
Concepts
Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.