Resolve image wider than div

Is there a way to make a div not expand its width, but make an image that is visible outside the div in IE8? For example, my div may be 200 pixels wide, but the image is 250 pixels wide.

+5
source share
2 answers

Can you put the image "absolute"?

div > img {position:absolute;}
+5
source

Set the div widthto 200pxand its overflowto visible.

+3
source

All Articles