Optimizing for Print in CSS


Use CSS to optimize web pages for printing, removing unnecessary elements and styling.

Source Code

@media print {
    .no-print, nav, footer {
        display: none;
    }
    body {
        font-size: 12pt;
    }
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments