Results 1 to 2 of 2

Thread: fading background

  1. #1
    Join Date
    Feb 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default fading background

    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.

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    create a very very tall 5 pixel wide gradient, then assign it to repeat across the x axis of the body

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •