Webskater
09-16-2004, 03:08 PM
I have seen sites lately all done in css where the body has a graduated background - starts one colour at the top and subtly changes all the way to the bottom. How is this done please? Thanks for any help.
|
Click to See Complete Forum and Search --> : Faded background Webskater 09-16-2004, 03:08 PM I have seen sites lately all done in css where the body has a graduated background - starts one colour at the top and subtly changes all the way to the bottom. How is this done please? Thanks for any help. NogDog 09-16-2004, 03:27 PM Here's what I did on my personal site (http://www.charles-reace.com/): CSS: body { background : #99aaaa url(img/bg.gif) repeat-x 0 0; background-attachment : fixed; margin : 0; padding : 0; font : medium normal arial, sans-serif; color : black; } The bg.gif is a tall, thin gif that goes from a dark gray on top to a lighter gray on the bottom. The background color matches the shade of gray at the bottom of the gif. the "repeat-x 0 0" tells it to repeat the background image across the page, starting at the top left corner of the page body. You could use a taller image than I did to get the color transition to stretch further down the page. Hope that helps. Webskater 09-17-2004, 02:51 AM Brilliant! The effect on your site is exactly what I am looking for. Thanks! webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |