![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
![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/g63cF.png)
html - Fit Image in DIV as a background which contains height less than division (Different) - Stack Overflow
![html - Div background image not shrinking to fit despite using "background-size: cover" - Stack Overflow html - Div background image not shrinking to fit despite using "background-size: cover" - Stack Overflow](https://i.stack.imgur.com/ZN6oD.jpg)