I gave up assuming TLAs are what I think they are years ago...
Anyhoo...
I think, if I'm interpreting the OP correctly, what you
want to do is nigh on impossible, but there are workarounds.
Unless the div, or whatever, you want to apply the 2-tone background to is of a known, fixed, measured in pixels, height.
Then the best way is to use a repeating background image that is 1px wide, the correct height, and is coloured appropriately, thus:
But, if the the div (or whatever) can be any height, then you need to make the container non-static, drop in two positioned (absolute) divs, and size and colour those, as appropriate.
Summat like:
in the HTML:
then in the CSS:
(where, obviously, 'top_color' and 'bottom_color' should be replaced with the desired color # or RGB code)
Or there's the way zimmer did it... (why didn't I think of that?)
Last edited by Scorpion0x17 (2009-02-25 13:53:33)