css @media screen code example
Example 1: css media screen
@media (max-width: 991px){
.mobile{
display: block;
}
}
Example 2: css @media
/* When the width is between 600px and 900px OR above 1100px */
@media screen and (min-width: 600px) and (max-width: 900px), (min-width: 1100px) {
div.example {...}
}
Example 3: media query
@media only screen and (max-width: 600px) {
.class {
// Your CSS
}
}
Example 4: media query
@media (max-height : 800px){ /* from 0 to 800 px max height applies */
p{
font-size:10px
}
}