Page Styling
You can use the @page
pseudo-selector to style all pages.
Style page by position in document
You can also style specific pages based on their position in the document.
For example, to style only the second page:
Named pages
We recommend using <section>
tags to contain one or more pages. By default, when you create a new template, you’ll see this CSS is already included:
Now, by putting your content into discrete section
elements, you can style pages individually.
You can style these sections by setting the page
property to define a named page, and then styling each @page
as shown.