Print rules using @Page with CSS

Print Rules using @page

Reference:

With the media="print" attribute, you can set rules that will be followed when a document is printed.You can add page breaks, set the orientation for a page and even set the sizes of the page including margins.

  • @page { size 7.5in 10in; margin: 0.5in}

  • @page { size: landscape; }

  • Page-break-before or page-break-after;

  • Consider h2 {page-break-before: always; }

 


 
 
Maint