Answers for "what are media queries in css"

CSS
120

css media queries

@media only screen and (max-width: 1200px){
    /*Tablets [601px -> 1200px]*/
}
@media only screen and (max-width: 600px){
	/*Big smartphones [426px -> 600px]*/
}
@media only screen and (max-width: 425px){
	/*Small smartphones [325px -> 425px]*/
}
Posted by: Guest on July-04-2020
51

media query

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

media query in css

@media screen and (min-width: 374px){
   section#rent_sectionn {
    padding: 0 20px !important;
}
 }
Posted by: Guest on November-07-2020
4

media query

@media only screen and (min-device-width: 900px) and (max-device-width: 1200px) {
  /* insert styles here */
}
Posted by: Guest on August-03-2021
4

media query

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

media query

@media screen and (min-width:480px) and (max-width:800px) {
    /* Target landscape smartphones, portrait tablets, narrow desktops
    */
  }

  @media screen and (max-width:479px) {
    /* Target portrait smartphones */
  }
  
  @media all and (orientation: landscape) {
    /* Target device in landscape mode */
  }
  @media all and (orientation: portrait) {
    /* Target device in portrait mode */
  }
 /*https://developers.google.com/search/blog/2012/04/responsive-design-harnessing-power-of*/
Posted by: Guest on June-19-2021

Browse Popular Code Answers by Language