DEV Community

Cover image for CSS aspect-ratio (with a fallback for old browsers)
Nikola Betica
Nikola Betica

Posted on • Edited on

6 1

CSS aspect-ratio (with a fallback for old browsers)

Example of a new CSS aspect-ratio property with a fallback for old browsers.

https://codepen.io/nikolab/pen/zYoRzbo

If you liked this article, consider buying me a coffee.

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more