Search code examples
htmlcssmedia-queries

More than one css rule


I have:

@media all and (-ms-high-contrast:none), (-ms-high-constrast:avtive) { css code here }

and I want it to by also with:

@media only screen and (max-width:768px){}

Is that possible in CSS


Solution

  • Nico Shultz:

    Not sure but wouldn't this work?

    @media only screen and (max-width:768px) and (-ms-high-contrast:none), (-ms-high-constrast:avtive) { css code here }