Overriding sensitive print styles

We use breakpoints to respond in SASS. Desktop styles start with a minimum width of 960 pixels. Unfortunately, when we print a page, the browser uses tablet styles β€” in other words, it β€œthinks” that the page prints less than 960 pixels. I know how to write print styles to take responsibility, but we just want to use desktop styles for printing without duplicating them in a CSS request for printing in the media.

Is there a way to tell the browser to use desktop styles when printing?

+4
source share
1 answer

Use

@media print {
    //Your CSS
}

@media , http://www.w3schools.com/css/css3_mediaqueries.asp

@media print {
    .header {
        display:none!important;
    }
}
0

All Articles