Auto Resize Image To Fit Div Container Using CSS
Here we consider how to Auto Resize An Image To Fit its Div Container Using CSS.
The image can be of larger size or smaller.
The Div will be having a fixed height and width.

Here we consider whether this image will fit inside the Div automatically.
This is very simple.
Just provide the Image with following Style.
Set max-width and max-height to 100%.
max-width:100%;
max-height:100%;
By applying the above style, we can Auto Resize Image To Fit its Div Container.