Page selectors
Limited availability
The :first
, :left
, and :right
pseudo-classes select pages based on their position in sequence after pagination. They're often used with the page
CSS property, to choose a print layout defined by the @page
rule.
To learn more, see
page,
:first,
:left,
:right at MDN.
Compatibility
- Chrome 85 Released on 2020-08-25
- Chrome Android 85 Released on 2020-08-25
- Edge 85 Released on 2020-08-27
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari ≤13.1 Released before 2020-03-24
- Safari on iOS ≤13.4 Released before 2020-03-24
Baseline availability blocked since August 2020 by Firefox (51 months)