css - Avoid an image to go outside a div? -
i have:
<div style="height:15px"> <img src="image" /> </div>
the image bigger 15px, it's outside div when see it. how "crop" image (show 15px port of it), using css?
you need overflow:hidden
see example here:
http://www.jsfiddle.net/s8qaq/
read overflow
: here w3schools
good luck!
Comments
Post a Comment