I have a background image for one of my pages. when I define it as background and enter the page on a high screen resolution that is begger then the image I have white spaces.
How can I streach a background to fit the page (no repeat just streach) ?
Try putting the image in the table background and start your web page html with table (immediately after the body tag). I can think of this only way to strech the image, otherwise, it will repeated again. I hope this will work.
Thanks.
__________________ ^|^ Please login or register to view this content. Registration is FREE - Search Engine Optimization and Web Site Promotion Explained! ~!~ Please login or register to view this content. Registration is FREE - Do you want to learn how other webmasters earning?
Well fellas I gotta say when ladynred posts something I normally don't even look again because she's super smart. You cannot do this without loosing some quality from the graphic. like she said you can set the size in html using width and height commands you can keep the image from being tiled with css using the background: no-repeat; command.
Try taking a higher quality image and resizing using a graphics program to the size you want if you're trying not to loose quality.
__________________
A patch is a piece of software which replaces old bugs with new bugs.
Should I hazard a guess that next you'll want to know how to make the body background image shrink for smaller resolutions ??
'cos you can't do that either in HTML
all you need to do is to set the image postition to be center center then give the body background-color property a colour value that is close to or compliments the image colour.
That way the edges won't be white, they will be the colour you have set.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?