Log in

View Full Version : fading background



tianhua1993
02-12-2008, 11:54 AM
can anyone show me how to make the background colour fade from top of the page to the bottom. one example is at http://www.msn.com/. Thanks.

boogyman
02-12-2008, 04:53 PM
create a very very tall 5 pixel wide gradient, then assign it to repeat across the x axis of the body



<style type="text/css">
body
{
background: url('/path/to/tall/image.gif') repeat-x top left;
}