Answers for "how min and max width work in media query css"

CSS
35

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
0

media min height css

@media only screen and (min-height: 500px) {
  /* place here CSS for when the screen is more than 500px tall */
  .card {
    background: #111;
  }
}
Posted by: Guest on June-01-2021

Code answers related to "how min and max width work in media query css"

Browse Popular Code Answers by Language