@media only screen and (max-height: 500px) {
/* place here CSS for when the screen is less than 500px tall */
.card {
width: 100%;
}
}
@media only screen and (max-width: 600px) {
// styles go here
}
@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;
}
}