How to make @media print ignore @media max-width

Asked

Viewed 260 times

0

I have a problem in my css that is generating a "mobile" layout at the time of printing, I have a @media max-width that makes my site responsive, however I would like to ignore it on @media print and print only the desktop layout, would have some way to do that?

2 answers

2


0

You must do something like this:

@media not print {
     @media (min-width:500px) {
         /* o teu estilo */
     }
}

This basically performs as (not print) and (min-width: 500px).

I hope I’ve helped. :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.