Msg#: 3978225 posted 1:05 pm on Aug 25, 2009 (gmt 0)
I have a background gif, 1 X 800 pixels. It's a gradient, darker at the top, lighter at the bottom.
Is it possible to only have the gif tile across my 900 pixel-wide page ONCE?
My problem is that if a given page is 800 pixels deep or less, the background is OK. But say the client wants to add more material and the page grows to more than 800 pixels, then there's the dark top of the background gif as the tiling starts over again.
I want to set the page background color to the color of the very bottom of the gradient and therefore have no depth color issues regardless of how long the page grows.
Msg#: 3978225 posted 5:43 pm on Aug 25, 2009 (gmt 0)
When doing this, if you haven't already, crop your background to 1 pixel wide X however deep you want it, it will load faster. Make sure the "last color" in the bottom of the gradient is a web-safe color so it doesn't form a line.
You can also use CSS shorthand:
background: #your-color url(image.jpg) repeat-x;
Where "your-color" is the bg color (#ffffff, etc.)