Check out example codes for "hegith specific css in media query". It will help you in understanding the concepts better.

Code Example 1

@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}

Code Example 2

/* 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;
  }
}

Learn ReactJs, React Native from akashmittal.com