media min height css code example
Example 1: media min height css
@media only screen and (min-height: 500px) {
/* place here CSS for when the screen is more than 500px tall */
.card {
background: #111;
}
}
Example 2: media max height css
@media only screen and (max-height: 500px) {
/* place here CSS for when the screen is less than 500px tall */
.card {
width: 100%;
}
}