Answers for "max width and height media query"

CSS
29

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
51

media query

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

media max height css

@media only screen and (max-height: 500px) {
  /* place here CSS for when the screen is less than 500px tall */
  .card {
    width: 100%;
  }
}
Posted by: Guest on June-01-2021
7

min and max width media query

@media (max-width: 989px) and (min-width: 768px) {}
Posted by: Guest on February-20-2020
2

maxheight media query

@media screen and (max-width: 995px), 
       screen and (max-height: 700px) {
  ...
}
Posted by: Guest on May-24-2021
1

what is a max and min width media query

/* What this query really means, is If [device width] is less than or equal to 600px, then do */
@media only screen and (max-width: 600px)  {...}

/* What this query really means, is If [device width] is greater than or equal to 600px, then do */
@media only screen and (min-width: 600px) {...}
Posted by: Guest on December-21-2020

Code answers related to "max width and height media query"

Browse Popular Code Answers by Language