Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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;
  }
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #hegith #specific #css #media #query
ADD COMMENT
Topic
Name
2+2 =