Answers for "css media queries max height"

CSS
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
1

hegith specific css in media query

/* Exact height */
@media (height: 360px) {
  div {
    color: red;
  }
}

/* Minimum height */
@media (min-height: 25rem) {
  div {
    background: yellow;
  }
}

/* Maximum height */
@media (max-height: 40rem) {
  div {
    border: 2px solid blue;
  }
}
Posted by: Guest on June-22-2020
2

maxheight media query

@media screen and (max-width: 995px), 
       screen and (max-height: 700px) {
  ...
}
Posted by: Guest on May-24-2021
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

Browse Popular Code Answers by Language