Is there a way to ensure that an image fits within a specified area using CSS or other methods? For example, if I have images of various sizes and want them all to fit into a div of 150px by 100px without stretching or distorting them. I just want the images to be contained within this area with any excess hidden.
I considered using overflow:hidden
, but it seems that it doesn't work in IE6.
Do you have any suggestions or solutions for this issue?