CSS :first class
- Προηγούμενη σελίδα :enabled
- Επόμενη σελίδα :first-child
- Επιστροφή στο προηγούμενο επίπεδο Εκπαιδευτικός Οδηγός Πseudo-Klassών CSS
Definition and usage
CSS :first
Pseudo-classes are used to select and set the style of the first page of the printed document.
Tip::first
Pseudo-classes are used with @page rules.
Note:The following properties can be used with :first
Used together:
- Margin properties
- orphans
- widows
- Pagination properties
Example
Select the first page to print:
@page :first { margin-left: 40%; margin-top: 50%;
CSS syntax
@page :first { css declarations
Technical details
Version: | CSS3 |
---|
Browser support
The numbers in the table indicate the first browser version to fully support this pseudo-class.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
18 | 12 | 116 | 6 | 9.2 |
Related pages
Αναφορά:CSS :left class
Αναφορά:CSS :right ψευδοκλάση
- Προηγούμενη σελίδα :enabled
- Επόμενη σελίδα :first-child
- Επιστροφή στο προηγούμενο επίπεδο Εκπαιδευτικός Οδηγός Πseudo-Klassών CSS