When writing a CSS media query, is there any way you can specify multiple conditions with “OR” logic?
I’m attempting to do something like this:
/* This doesn't work */
@media screen and (max-width: 995px OR max-height: 700px) {
...
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use a comma to specify two (or more) different rules:
From https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries