SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    ********* Ornithologist AtomicPenguin's Avatar
    Join Date
    May 2002
    Location
    Vancouver, BC
    Posts
    459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    colour gradients

    Hi y'all,

    I came across this hideous little scrap of code that puts in a colour gradient in an html element:

    <div style="width: 100%; filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr=#DBCF23,EndColorStr=003399)">Neat.</div>

    Pity it only works with IE; I was wondering if there was a CSS version - one that ran on both IE & Mozilla. (Not interested in Netscape - I have my reasons :-)

    Anyone?

  2. #2
    SitePoint Zealot
    Join Date
    Nov 2002
    Location
    Belgium
    Posts
    147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think there's something to make a gradient in CSS, so you better use a picture instead.


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
  •