Answers for "media query css min and max for all devices"

4

media query desktop

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {...}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {...}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {...}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {...}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {...}
Posted by: Guest on July-04-2020
0

media query for mobile min and max width both

@media only screen and (max-width: 600px) and (min-width: 400px)  {...}
Posted by: Guest on July-15-2021
1

media query css for all devices

@media (min-width: 600px) and (max-width: 800px) {

/* your css code here  */

/* html { background: red; } */


}
Posted by: Guest on November-03-2020
0

media query min and max width for all devices

@media only screen and (max-width: 480px) and (min-width: 320px)  {
  /* mobile-devices */
  
}

@media only screen and (max-width: 768px) and (min-width: 481px)  {
  /* iPads, Tablets */
   
}

@media only screen and (max-width: 1024px) and (min-width: 769px)  {
  /* small screens, laptops */
  
}

@media only screen and (min-width: 1024px)  {
  /* Desktops, large screens */

}
Posted by: Guest on October-15-2021

Code answers related to "media query css min and max for all devices"

Browse Popular Code Answers by Language