CSS :left pseudo-class
- Previous Page :last-of-type
- Next Page :link
- Go Back to the Previous Level CSS Pseudo-class Reference Manual
Definition and usage
CSS :left
Pseudo-classes are used to select and set the styles of all left pages in the printed document.
Tip::left
Pseudo-classes and @page rules.
Note:The following properties can be used together with :left
Used together:
- Margin properties
- Padding properties
- Border properties
- Background properties
Example
Select all left pages for printing:
@page :left { margin-left: 40%; margin-top: 50%; }
CSS syntax
@page :left { css declarations; }
Technical details
Version: | CSS3 |
---|
Browser support
The numbers in the table specify the first browser version that fully supports this pseudo-class.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
6 | 12 | Not supported | 5 | 9.2 |
Related pages
Reference:CSS :first pseudo-class
Reference:CSS :right pseudo-class
- Previous Page :last-of-type
- Next Page :link
- Go Back to the Previous Level CSS Pseudo-class Reference Manual