122
rated 0 times
[
127]
[
5]
/ answers: 1 / hits: 35428
/ 11 Years ago, wed, april 3, 2013, 12:00:00
What I have :
I have a div of width 200px X 200px
and image inside it of size 400px X 400 px.
What I want to do :
I want to show only a part of image inside div
Is it possible using only css.If not ? Then what are the other ways
(Note : I don't want to set image to background of the div)
What I have done so far :
Fiddle : http://jsfiddle.net/5Hbr3/1/
<div id=sample>
<img src=image.jpg />
</div>
I want to show image from 100,100 to 300,300.
and scrollbar should disappear.
Any help will be appreciated.
Thanks
More From » html