aspect-ratio

Term side of the Card
Topic: Image Handling
Unit title: aspect-ratio
Categories: Property
Explanation side of the Card

Explanation: The property that sets the width-to-height ratio of an element, helping it maintain its shape as the screen size changes. This is useful for ensuring consistent proportions, like keeping images or videos from stretching.

Browser compatibility:
  • The chrome browser supports this feature starting from version 88
  • The edge browser supports this feature starting from version 88
  • The firefox browser supports this feature starting from version 89
  • The safari browser supports this feature starting from version 15
Availability: