Answers for "how to set media query on max of width or 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

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