CSS background image problem

Associate
Joined
20 Oct 2005
Posts
112
Hi, I'm having difficulties working out how to deal with a background image of a div.

I want a vertical gradient of 500px (top is white - bottom is grey) as a BG image of a DIV. The bottom of the image needs to be the bottom of the DIV when the DIV <500px (so top is light grey - bottom is grey) but then the DIV is > 500px the image stays at the top and the DIV has a BG colour of grey to match.

Does that make sense? :-s
 
HI, and thanks. The problem with that though is that background: top. I need to so that when the div is less than 500px tall it effectively has a background: bottom but I don't see how it's done.
 
Back
Top Bottom