@media only screen and (max-height: 500px) {
/* place here CSS for when the screen is less than 500px tall */
.card {
width: 100%;
}
}
@media (max-width: 989px) and (min-width: 768px) {}
@media screen and (max-width: 995px),
screen and (max-height: 700px) {
...
}
@media only screen and (min-height: 500px) {
/* place here CSS for when the screen is more than 500px tall */
.card {
background: #111;
}
}
@media only screen and (max-width: 535px), screen and (max-height:550px ) {
}
/*
# ref: https://www.w3schools.com/css/css3_mediaqueries_ex.asp
- On screens that are 992px or less, set the background color to blue
- Smaller screens
*/
@media screen and (max-width: 400px) {
body {
background-color: blue;
}
}
/*
- On screens that are 992px or more, set the background color to red
- Larger screens
*/
@media screen and (min-width: 992px) {
body {
background-color: red;
}
}
/* What this query really means, is If [device width] is less than or equal to 600px, then do */
@media only screen and (max-width: 600px) {...}
/* What this query really means, is If [device width] is greater than or equal to 600px, then do */
@media only screen and (min-width: 600px) {...}
@media screen and (max-width: 992px) {
body {
background-color: blue;
}
}