Results 1 to 6 of 6

Thread: graduated background

  1. #1
    Join Date
    May 2009
    Posts
    23
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default graduated background

    Hi, I use the following code to allow me a graduated background in my site,

    Code:
    <body style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#8fc136', startColorstr='#ffffff', gradientType='0');" link="#ffffff" vlink="#ffffff" alink="#ffffff">
    My web site is

    www.thisisharz.com

    Can anyone help me with a code that is suitable for all browsers.

    Many thanks

    Martin
    Last edited by thetestingsite; 08-09-2009 at 07:15 PM. Reason: added code tags

  2. #2
    Join Date
    May 2009
    Posts
    23
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi, I have no idea why these silly faces are showing,

    Please help and maybe look at the web site for the code

    Martin

  3. #3
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    That code only works for IE. For a more cross browser solution, you need to use an image that is a gradient.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  4. #4
    Join Date
    May 2009
    Posts
    23
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Just one more thing, these faces should be double dots in the code

    Martin

  5. #5
    Join Date
    May 2009
    Posts
    23
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi, thanks for the advice and who ever clered up my first message.

    I guess what you are saying is that I need to create a background image, if so how can I make sure it works from top to bottom in one nice smooth flow and not repeat itself as my pages are all diffrent lengths.

    Many thanks

    Martin

  6. #6
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    use css (below code should be placed between the head tags and you will need to change the parts in red to suit your preferences):

    Code:
    <style type="text/css">
    BODY {
     background: url('/path/to/background.image') repeat-y #ffffff;
    }
    </style>
    Example of above code:

    http://www.gadgetzinc.com

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

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
  •