@page Rule

An @page rule sets basic settings such as page size, margin, page header, and page footer.

@page {
  size:   A4;
  margin: 25mm;
  @top-center {
    content: "Sample";
  }
  @bottom-center {
    content: counter(page);
  }
}