media queries height code example
Example 1: media query
@media only screen and (max-width: 600px) {
body {
background-color: lightblue;
}
}
Example 2: css media query
@media (min-width: 576px) {
.selector {
background-color:#f00;
}
}
@media (min-width: 768px) {}
@media (min-width: 992px) {}
@media (min-width: 1200px) {}
Example 3: hegith specific css in media query
@media (height: 360px) {
div {
color: red;
}
}
@media (min-height: 25rem) {
div {
background: yellow;
}
}
@media (max-height: 40rem) {
div {
border: 2px solid blue;
}
}