Answers for "what does @media do in css"

CSS
51

media query

@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}
Posted by: Guest on December-06-2019
1

css media screen

@media (max-width: 991px){
    .mobile{
        display: block;
    }
}
Posted by: Guest on October-30-2020
4

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 {...}
}
Posted by: Guest on December-15-2020
0

minimum width of different devices in html

<meta name="viewport" content="width=device-width,initial-scale=1">
Posted by: Guest on April-30-2020

Browse Popular Code Answers by Language