Horje
aspect ratio css Code Example
css media query aspect ratio
/* Minimum aspect ratio */
@media (min-aspect-ratio: 8/5) {
  div {
    background: #9af; /* blue */
  }
}

/* Maximum aspect ratio */
@media (max-aspect-ratio: 3/2) {
  div {
    background: #9ff;  /* cyan */
  }
}

/* Exact aspect ratio, put it at the bottom to avoid override*/
@media (aspect-ratio: 1/1) {
  div {
    background: #f9a; /* red */
  }
}
aspect ratio css
aspect-ratio: 16 / 9;
// horizontal/vertical




Css

Related
cursor not pointer Code Example cursor not pointer Code Example
checkbox border css Code Example checkbox border css Code Example
how to set fallback font in css Code Example how to set fallback font in css Code Example
arrow up css Code Example arrow up css Code Example
how to center with position fixed Code Example how to center with position fixed Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12