:first
A page-target selector used within the '@page' rule to specifically style the first page of a printed document.
Syntax
/* Usage Example */
@page :first {
/* Removes the header from the first printed page */
margin-top: 2cm;
}
:first Browser support
Widely available
Since
2015 95% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
18+
116+
6+
12+