CSS PAGE

This property is used to specify a specific page type to use when displaying an element box. If the value specified is different than the one for the rendered element box that precedes it, one or two page breaks should be inserted between them, and the element box should then be rendered on a page box of the indicated type.

Example
1
2
3
4
@page doublepage {
  size: 8.5in 11in;
  page-break-after: left
}
1
2
3
4
body {
  page: doublepage;
  page-break-after: right
}
1
2
3
<body style="page: doublepage; page-break-after: right">
  text in the body
</body>

Possible Values

auto: References the current default page.
[identifier]: Specifies an identifier for a page type defined in an @page rule.