media query for max height code example
Example 1: min and max width media query
@media (max-width: 989px) and (min-width: 768px) {}
Example 2: hegith specific css in media query
/* Exact height */
@media (height: 360px) {
div {
color: red;
}
}
/* Minimum height */
@media (min-height: 25rem) {
div {
background: yellow;
}
}
/* Maximum height */
@media (max-height: 40rem) {
div {
border: 2px solid blue;
}
}
Example 3: media query min and max width
@media screen and (max-width: 992px) {
body {
background-color: blue;
}
}