Export (0) Print
Expand All
Expand Minimize

2.1.66 [CSS-Level2-2009] Section 13.2.2, Page selectors: selecting left, right, and first pages

V0125:

The specification states:

All pages are automatically classified by user agents into either the :left or :right pseudo-class. Whether the first page of a document is :left or :right depends on the major writing direction of the root element. For example, the first page of a document with a left-to-right major writing direction would be a :right page, and the first page of a document with a right-to-left major writing direction would be a :left page. To explicitly force a document to begin printing on a left or right page, authors can insert a page break before the first generated box.

@page :left {
  margin-left: 4cm;
  margin-right: 3cm;
}

@page :right {
  margin-left: 3cm;
  margin-right: 4cm;
}

Quirks Mode and IE7 Mode (All Versions)

The @page :right and @page :left rules are not supported.

V0126:

The specification states:

Properties specified in a :left or :right @page rule override those specified in an 
@page rule that has no pseudo-class specified. Properties specified in a :first 
@page rule override those specified in :left or :right @page rules.

Quirks Mode and IE7 Mode (All Versions)

The @page :first rule is not supported.

V0127:

The specification states:

Margin declarations on left, right, and first pages may result in different page 
area widths. To simplify implementations, user agents may use a single page area 
width on left, right, and first pages. In this case, the page area width of the 
first page should be used.

Quirks Mode and IE7 Mode (All Versions)

The :left, :right, and :first pseudo classes are not supported.

IE8 Mode (All Versions)

The page area width of the first page is used.

Show:
© 2014 Microsoft