SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2006
    Location
    uk
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE png hack for Css backgrounds

    Hi

    Does anyone know of a good hack for the IE png transparency that will work in the css background tag ??

    Thx in advance.

  2. #2
    SitePoint Addict
    Join Date
    Mar 2005
    Location
    Toronto
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it's basically the same hack as normal IE png hack, by applying the alpha image loader, so for instance, example:
    Code:
    /* IE hack */
    * html .bg_image{
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='hi.png',sizingMethod='scale');
    }
    /* Normal CSS */
    .bg_image{
     backgorund: url('hi.png');
    }
    This should work, I've attempted this method a couple times, as long as you get the directory correct, everything should work fine.
    In search of the clouds...and maybe some work

  3. #3
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    transparency on gradients....

    this doesn't seem to work for transparent backgrounds with gradients...... is there a way to get this to work?

  4. #4
    SitePoint Zealot
    Join Date
    Jul 2002
    Location
    Los Angeles CA
    Posts
    136
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by melbs.com View Post
    this doesn't seem to work for transparent backgrounds with gradients...... is there a way to get this to work?
    It should. Are you sure you're applying the filter correctly?


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
  •