![autolayout - How to keep UIIMage aspect ratio and side padding width and prevent the height from exceeding the parent view height - Stack Overflow autolayout - How to keep UIIMage aspect ratio and side padding width and prevent the height from exceeding the parent view height - Stack Overflow](https://i.stack.imgur.com/JdptY.png)
autolayout - How to keep UIIMage aspect ratio and side padding width and prevent the height from exceeding the parent view height - Stack Overflow
![android - Getting the top padding of a scaled bitmap in an imageview that maintains aspect ratio - Stack Overflow android - Getting the top padding of a scaled bitmap in an imageview that maintains aspect ratio - Stack Overflow](https://i.stack.imgur.com/zR92W.png)
android - Getting the top padding of a scaled bitmap in an imageview that maintains aspect ratio - Stack Overflow
Addy Osmani on X: "The new CSS aspect-ratio property lets you set the proportion of any element's dimensions without padding-top hacks! Read about it in https://t.co/GJR2JmBLFd by @una https://t.co/N8EmGJvV8s" / X
![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)