Results 1 to 5 of 5

Thread: Gradient in background color

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Question Gradient in background color

    Is is possible to define a background with a gradient from blue to white with CSS?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Alpha Filter
    CSS Code Example:

    <span style="FILTER: Alpha(Opacity=80, FinishOpacity=70, Style=2); font-size:20pt;">Alpha Filter</span>

    Result:

    Alpha Filter
    Possible Parameters:

    Opacity 0 (fully transparent) - 100 (fully opaque)
    Finishopacity 0 (fully transparent) - 100 (fully opaque)
    Style shape characteristics of opacity gradient. 0 (uniform), 1 (linear), 2 (radial), 3 (rectangular)
    startX X coordinate for opacity gradient to start
    startY Y coordinate for opacity gradient to start
    finishX X coordinate for opacity gradient to end
    finishY Y coordinate for opacity gradient to end
    http://www.endamcg.com/main/guides/c...al-filters.htm

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    I only think that these filters are used for the font color. I need to make a background that goes from #efefef to white. I don't think I can use this filter for this, or am I wrong?

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    With standard CSS it's definately not possible. Maybe CSS 3 will have some gradient support, but taking a quick look at the working draft of the colour module I couldn't see anything I'm afraid

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Then why not use an image as the background?

Posting Permissions

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



Click Here to Expand Forum to Full Width