![html - How to autofit image in container with constant aspect ratio using only CSS? - Stack Overflow html - How to autofit image in container with constant aspect ratio using only CSS? - Stack Overflow](https://i.stack.imgur.com/dWRih.jpg)
html - How to autofit image in container with constant aspect ratio using only CSS? - Stack Overflow
![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
![Make flexbox FIGURE content shrink proportionally - HTML & CSS - SitePoint Forums | Web Development & Design Community Make flexbox FIGURE content shrink proportionally - HTML & CSS - SitePoint Forums | Web Development & Design Community](https://global.discourse-cdn.com/sitepoint/original/3X/0/c/0c797967cdf409658d6b2ff9771ad4c7bf568d0f.png)
Make flexbox FIGURE content shrink proportionally - HTML & CSS - SitePoint Forums | Web Development & Design Community
![jquery - How to center a div in html & css, always keep the aspect ratio, and fill max screen width/height? - Stack Overflow jquery - How to center a div in html & css, always keep the aspect ratio, and fill max screen width/height? - Stack Overflow](https://i.stack.imgur.com/b2FHM.png)