![html - Maintain the aspect ratio of a div with CSS and expand to maximum size in responsive parent div without overflow - Stack Overflow html - Maintain the aspect ratio of a div with CSS and expand to maximum size in responsive parent div without overflow - Stack Overflow](https://i.stack.imgur.com/bsGzm.png)
html - Maintain the aspect ratio of a div with CSS and expand to maximum size in responsive parent div without overflow - Stack Overflow
![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
![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)
jquery - How to center a div in html & css, always keep the aspect ratio, and fill max screen width/height? - Stack Overflow
![Scale a div (keeping its aspect ratio) given its parent's width and height using css - Stack Overflow Scale a div (keeping its aspect ratio) given its parent's width and height using css - Stack Overflow](https://i.stack.imgur.com/VNdJ5.png)