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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -