4. Named Pages

Like Page Selectors, Named Pages are used to apply styles to very specific pages in the document. You can define pages with own styles and a specific name for elements. Styles are applied for the pages where these elements appear on.

Note:

Page breaks will occur before and after these elements.

Defining a Named Page is done using "@page" followed by a whitespace and a name. The following sample shows how to apply the landscape format to all pages containing tables:

@page landscape {
  size: A4 landscape;
}
table {
  page: landscape;
}