thanks for that.....
But still i need to fit the image within my pre-set div width....
and i want to do it using only css/html....
width=100%; should do the trick, but you may have to experiment with the positioning. I'm not 100% sure about it and don't have the inclination to do all the work for you!
You should be able to do it with only html/css as long as the parameters are right.
Take a look at this, which is a suggestion for the top banner of a site I've started to work on:
http://intertrafico.com/eldjarn
Vary the width of the window and see the text size change.
You'll see that the banner fills much more than the screen; it's a div with 1600% screen width and the banner consists of pictures that are shown in a random order. If you need to you can check the source and download the css file.