Answers for "media query max width range"

CSS
1

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
0

media query for max width and height

@media only screen and (max-width: 535px), screen and (max-height:550px ) {
}
Posted by: Guest on November-05-2021

Browse Popular Code Answers by Language