SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Hibernator YuriKolovsky's Avatar
    Join Date
    Nov 2007
    Location
    Malaga, Spain
    Posts
    1,072
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    firefox CSS gradients

    ive avoided gradients for years, considering that having 1 extra file just for some stupid gradient was a bad idea, but now...
    just found out that firefox3.6 has css gradients! how sweet is this!

    http://hacks.mozilla.org/2009/11/css...ts-firefox-36/


    i wonder how many other browsers have this.


    too bad i can't use this yet or that there is no ability in css to disable a gradient image request only in firefox replacing it with the css gradient, essentially giving a page load speed bonus to firefox users.

  2. #2
    SitePoint Member
    Join Date
    Jan 2010
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by YuriKolovsky View Post
    ive avoided gradients for years, considering that having 1 extra file just for some stupid gradient was a bad idea, but now...
    just found out that firefox3.6 has css gradients! how sweet is this!

    http://hacks.mozilla.org/2009/11/css...ts-firefox-36/


    i wonder how many other browsers have this.
    http://robertnyman.com/2010/02/15/cs...-using-images/

  3. #3
    Hibernator YuriKolovsky's Avatar
    Join Date
    Nov 2007
    Location
    Malaga, Spain
    Posts
    1,072
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    yay for gradients.

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,526
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Yes IE has had something similar for years but everyone avoided using anything proprietary.

    You could supply background images in the first rule and then just use the background gradient syntax in the next rule to cancel out the image if gradients are supported. IE would need it's own rules of course.

  5. #5
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2008
    Location
    New York, NY
    Posts
    1,432
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


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
  •