CSS Print Stylesheet
Optimize web pages for printing using CSS print media queries with page breaks and display adjustments for paper output.
Code
@media print {
body { font-size: 12pt; color: black; }
.no-print { display: none; }
h1 { page-break-before: always; }
a::after { content: " (" attr(href) ")"; }
}Report a problem with this exampleOpens a pre-filled issue on GitHub.