CSS :right Selector

❮ Previous Selectors Next ❯

Example

@page :right {
  margin: 2in 3in;
}

Meaning

The :right selector sets page layout rules for a right-hand page when printing.

Note: This pseudo-class can be used to change only the margin, padding, border, and background properties of the page box.

See also: @page.

@page related pseudo-classes: :first, :left.

Version: CSS2




Standard Syntax

:right {
  css declarations;
}



Browser Support

The numbers in the table specify the first browser version that fully supports the property.




Status







❮ Previous Selectors Next ❯