0

Anyone know what the '@ page' selector in this example is for?

@media print {
  @    page {
        margin: 2cm .5cm;
    }
Luke W
  • 8,276
  • 5
  • 44
  • 36

2 Answers2

1

I think, this actually should be @page (without the white-space).

MDN on @page

The @page CSS at-rule is used to modify some CSS properties when printing a document. You can't change all CSS properties with @page. You can only change the margins, orphans, widows, and page breaks of the document. Attempts to change any other CSS properties will be ignored.

Sirko
  • 72,589
  • 19
  • 149
  • 183
0

Pages can be styled using @page rules, which by default apply to every page in the document. It is also possible to apply style to specific pages using page selectors.