CSS :left Pseudo-class
Example
Selects all left-hand pages when printing:
@page :left {
margin-left: 40%;
margin-top: 50%;
}
Try it Yourself »
Definition and Usage
The :left
pseudo-class is used to select
and style all left-hand pages of a printed document.
Tip: The :left
pseudo-class is used with the @page rule.
Note: The following properties can be used with :left:
- 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 | |||||
---|---|---|---|---|---|
:left | 6 | 12 | No | 5 | 9.2 |
CSS Syntax
@page
:left {
css declarations;
}
Related Pages
CSS Reference: :first
CSS Reference: :right