To prevent browsers from automatically extending the Div width to fit a large image, simply do:

 

overflow:hidden;

 

This will cut the image to fit inside the specified Div size.

Advertisements