this code:
<div style="width: 75px; height: 75px; text-align: center; overflow: hidden;"> <img src"myimg.png"/> </div>
i want crop left , right image in div.
but crop part right.
i want (which works in ie 8-10 too).
thanks in advance!!!
why not set image background?
html
<div id="mydiv" style="width: 75px; height: 75px; text-align: center; overflow: hidden;"> </div>
css
#mydiv { background-image:url('myimg.png'); background-repeat:no-repeat; background-attachment:fixed; background-position:center; }
Comments
Post a Comment