Reputation: 287
I have tried with many times but didnt happen ..
on img src i want to show only half image and when i will mouseover on that image it will show me the full image ... is it possible
Upvotes: 7
Views: 14777
Reputation: 6406
Yes. You could use a div with overflow:hidden;
around the image. Change the size of the div instead the size of the image.
Example with jQuery: http://jsfiddle.net/5GWCz/
Or CSS-Only: http://jsfiddle.net/5GWCz/2/
Upvotes: 4
Reputation: 124
you can use CSS Image Sprites for doing this look in this link
http://www.w3schools.com/css/css_image_sprites.asp
Upvotes: 0