![I need help cleaning up this code. Adding aspect ratio to it - HTML & CSS - SitePoint Forums | Web Development & Design Community I need help cleaning up this code. Adding aspect ratio to it - HTML & CSS - SitePoint Forums | Web Development & Design Community](https://global.discourse-cdn.com/sitepoint/original/3X/0/1/0138d3504eb78348e85b2176b8a75913c5b7b9bc.png)
I need help cleaning up this code. Adding aspect ratio to it - HTML & CSS - SitePoint Forums | Web Development & Design Community
![css - Flexbox in Chrome doesn't seem to respect 'aspect ratio' padding; fine in Firefox - Stack Overflow css - Flexbox in Chrome doesn't seem to respect 'aspect ratio' padding; fine in Firefox - Stack Overflow](https://i.stack.imgur.com/vICOi.png)
css - Flexbox in Chrome doesn't seem to respect 'aspect ratio' padding; fine in Firefox - Stack Overflow
![Elad Shechter on X: "🤩 The #CSS property 'aspect-ratio' is now supported in all evergreen browsers! * The last two browsers, Safari 15 and Samsung Internet 15 (updated today) , are now Elad Shechter on X: "🤩 The #CSS property 'aspect-ratio' is now supported in all evergreen browsers! * The last two browsers, Safari 15 and Samsung Internet 15 (updated today) , are now](https://pbs.twimg.com/media/FAeIrfgWUAsrtLl.jpg)
Elad Shechter on X: "🤩 The #CSS property 'aspect-ratio' is now supported in all evergreen browsers! * The last two browsers, Safari 15 and Samsung Internet 15 (updated today) , are now
![javascript - maintain aspect ratio of a child div with both height and width changes of the parent - Stack Overflow javascript - maintain aspect ratio of a child div with both height and width changes of the parent - Stack Overflow](https://i.stack.imgur.com/M2fuA.gif)
javascript - maintain aspect ratio of a child div with both height and width changes of the parent - Stack Overflow
![New aspect-ratio CSS property supported in Chromium, Safari Technology Preview, and Firefox Nightly | Articles | web.dev New aspect-ratio CSS property supported in Chromium, Safari Technology Preview, and Firefox Nightly | Articles | web.dev](https://web.dev/static/articles/aspect-ratio/image/two-images-the-same-aspe-c70cc7ed740f8.jpg)
New aspect-ratio CSS property supported in Chromium, Safari Technology Preview, and Firefox Nightly | Articles | web.dev
![New aspect-ratio CSS property supported in Chromium, Safari Technology Preview, and Firefox Nightly | Articles | web.dev New aspect-ratio CSS property supported in Chromium, Safari Technology Preview, and Firefox Nightly | Articles | web.dev](https://web.dev/static/articles/aspect-ratio/image/using-padding-top-set-1-9702b5487f14c.jpg)