![html - when set background image in div at time i have to give static height of div otherwise it not take automatic height - Stack Overflow html - when set background image in div at time i have to give static height of div otherwise it not take automatic height - Stack Overflow](https://i.stack.imgur.com/06d2a.jpg)
html - when set background image in div at time i have to give static height of div otherwise it not take automatic height - Stack Overflow
![Simple CSS Solutions: How to fit images with different dimensions in set containers | by Kimberly Luu | Medium Simple CSS Solutions: How to fit images with different dimensions in set containers | by Kimberly Luu | Medium](https://miro.medium.com/max/394/0*EPYBPF6dVduFEMTJ.png)
Simple CSS Solutions: How to fit images with different dimensions in set containers | by Kimberly Luu | Medium
![How to make an image fit proportionally in flexbox item or in sections - HTML & CSS - SitePoint Forums | Web Development & Design Community How to make an image fit proportionally in flexbox item or in sections - HTML & CSS - SitePoint Forums | Web Development & Design Community](https://aws1.discourse-cdn.com/sitepoint/original/3X/b/b/bbbd45c23d8be240176249888deb49f5b8c31671.png)
How to make an image fit proportionally in flexbox item or in sections - HTML & CSS - SitePoint Forums | Web Development & Design Community
![html - Fit Image in DIV as a background which contains height less than division (Different) - Stack Overflow html - Fit Image in DIV as a background which contains height less than division (Different) - Stack Overflow](https://i.stack.imgur.com/hfBzq.png)