i want to show a image as a background of div tag
for exp...
but the problem is that image's height is 500px and width is 600px...
and bcaz of this image is not completely visible in div tag... only some part of it is visible
but i want full image in div tag...
if image is small then we can use background-repeat property but in this reverse case how can i solve my problem... (i dont want to change the actual size of image.. )
if someone knw pls pls reply me... it would be very helpful
Thanks in advance

Javeed M ShaikhRank #839 · 2.7K reputationPosted Nov 18, 2011, 5:39 AM EST
div {
background-image: url(img.png);
background-repeat: no-repeat;
background-size: 100% 100%;
background-origin: content-box }
Gagan BansalRank #1,878 · 792 reputationPosted Nov 18, 2011, 8:55 AM EST
thanx but i hv tried it and it was not working.......
Javeed M ShaikhRank #839 · 2.7K reputationPosted Nov 18, 2011, 9:30 AM EST
Gagan BansalRank #1,878 · 792 reputationPosted Nov 19, 2011, 12:04 PM EST
i hv solved my problem... got d solution of wat i want...
but... will post d solution later...
Thnxx.....