Answers for "media query for small screen"

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
7

min and max width media query

@media (max-width: 989px) and (min-width: 768px) {}
Posted by: Guest on February-20-2020
1

mobile tablet desktop media queries

Syntax:

@media( media feature ) {
    // CSS Property
}

The screen resolutions of different devices are listed below:

Mobile (Smartphone) max-width: 480px
Low Resolution Tablets and ipads max-width: 767px
Tablets Ipads portrait mode max-width:1024px
Desktops max-width:1280px
Huge size (Larger screen) max-width: 1281px and greater
Posted by: Guest on June-18-2020
4

media query

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

Code answers related to "media query for small screen"

Browse Popular Code Answers by Language