hegith specific css in media query

CSS
@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}/* 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;
  }
}

Source

Also in CSS: