CSS :right Pseudo-class
Example
Selects all right-hand pages when printing:
@page :right {
margin-left: 40%;
margin-top: 50%;
}
Try it Yourself »
Definition and Usage
The CSS :right
pseudo-class is used to select
and style all right-hand pages of a printed document.
Tip: The :right
pseudo-class is used with the @page rule.
Note: The following properties can be used with :right:
- margin properties
- padding properties
- border properties
- background properties
Version: | CSS3 |
---|
Browser Support
The numbers in the table specifies the first browser version that fully supports the pseudo-class.
Pseudo-class | |||||
---|---|---|---|---|---|
:right | 6 | 12 | No | 5 | 9.2 |
CSS Syntax
@page
:right {
css declarations;
}
Related Pages
CSS Reference: :first
CSS Reference: :left