[thelist] bg color Q.

admataz_lists admataz_lists at yahoo.co.uk
Wed Mar 20 03:31:10 CST 2002


--starts as dark blue at the very top and gradually fades --to light blue at
the bottom. He wants the same on his
--website...

Nick,
you can use css to have a tiled background image with the gradient, say
15px wide  (advisable because a 1px image takes too long to draw over and
over) that only repeats on the horizontal - so no matter how long your page
is - it will fade into your background colour.
something llike this in your style definition:
"background:url('images2/bglines2.gif'); background-repeat:repeat-x"

i've used something similar on http://www.sleaze.co.za/

your worries then are
1. browser that is css compatible
2. visitors to the site that are using 256 (rare) or lower (practically raw)
colour setting on their monitor might get an ugly spotty pattern instead of
a smooth gradient.

hope that helps,
-ad







More information about the thelist mailing list