Answers for "media query for mobile min and max width"

CSS
25

media query min and max

/* Max-width */
@media only screen and (max-width: 600px)  {...}

/* Min-width */
@media only screen and (min-width: 600px)  {...}

/* Combining media query expressions */
@media only screen and (max-width: 600px) and (min-width: 400px)  {...}
Posted by: Guest on December-06-2019
7

min and max width media query

@media (max-width: 989px) and (min-width: 768px) {}
Posted by: Guest on February-20-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
0

media query for mobile min and max width

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

media query min and max width for all devices

@media only screen and (max-width: 480px) and (min-width: 320px)  {
  /* mobile-devices */
    .width {
    background: var(--clr-grey);
  }
}

@media only screen and (max-width: 768px) and (min-width: 481px)  {
  /* iPads, Tablets */
    .width {
    background: var(--clr-pink);
  }
}

@media only screen and (max-width: 1024px) and (min-width: 769px)  {
  /* small screens, laptops */
    .width {
    background: var(--clr-yellow);
  }
}

@media only screen and (min-width: 1024px)  {
  /* Desktops, large screens */
    .width {
    background: var(--clr-yellow);
  }
}
Posted by: Guest on October-15-2021

Code answers related to "media query for mobile min and max width"

Browse Popular Code Answers by Language