What's the HTML code to stretch the background image?
When i put in my background, the background repeats itself a bit on the right. How do I stretch the image out so I will only see the background once? It looks ugly with it's repetition
Public Comments
- I don't know, google it - I have done it before but I obviously can't remember it sorry
- <img src="xxx.jpeg"height="xx"width="xx">
- You're never going to get it to stretch to the perfect width on every monitor so don't even try! My resolution is 1900 by 1200 widescreen, for example and more and more people are using widescreens. You're better off to use CSS to CENTER the background and have a complementary color designated for the background also which will show around the edges. Joyce http://www.DesignByJoyce.com
- In the css, do this - body { background:url(insert path to your image) no-repeat; } By default the image will be centered. You cannot stretch a background image.
Powered by Yahoo! Answers