Answers for "screen width media query"

CSS
51

media query

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

css media query

/* BOOSTRAP MEDIA BREAKPOINTS */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {  
  .selector {
  	background-color:#f00;
  }
}
/* Medium devices (tablets, 768px and up) The navbar toggle appears at this breakpoint */
@media (min-width: 768px) {}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {}
Posted by: Guest on May-16-2020
1

css different sreen size

/* For Mobile */
@media screen and (max-width: 540px) {
    .view {
        width: 400px;
    }
}

/* For Tablets */
@media screen and (min-width: 540px) and (max-width: 780px) {
    .view {
        width: 600px;
    }
}
Posted by: Guest on August-07-2020
4

media query

@media only screen and (max-width: 600px) {
  .class {
    // Your CSS
  }
}
Posted by: Guest on February-20-2020
-3

media query

@media (max-height : 800px){ /* from 0 to 800 px max height applies */
  p{
    font-size:10px
  }
}
Posted by: Guest on May-22-2020
0

screen sizes for css media

<meta name="viewport" content="width=device-width, initial-scale=1" />
Posted by: Guest on February-04-2021

Browse Popular Code Answers by Language