:first

A page-target selector used within the '@page' rule to specifically style the first page of a printed document.

Quick example

@page :first {
  /* Removes the header from the first printed page */
  margin-top: 2cm;
}

:first Browser Support

Limited availability95% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Not ready for production without a fallback.

18+
6+
12+
ESC