IE8 Alpha Transparency not Working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mfaisalwarraich
    New Member
    • Oct 2007
    • 194

    IE8 Alpha Transparency not Working

    Hello,

    I am using the following method in CSS to make a PNG image transparency preserved:

    Code:
    	opacity:0.5;
    	filter:alpha(opacity=50);
    This works fine in Firefox, Chrome but not in IE8. I have also adaded behavior to the css file in the body rule which is as follows:

    Code:
    body{
    div, img{
    behavior: url(images/iepngfix.htc);
    }
    and added necessary files i.e. blank.gif and iepngfx.htc which is working in other browsers except IE8. please tell me wat i can do to have my image transparent in IE8.

    Thanking you.

    }
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    behaviors no longer work in IE8.
    Perhaps this this answers your question.
    IE is the worst browser on the planet.

    Comment

    • mfaisalwarraich
      New Member
      • Oct 2007
      • 194

      #3
      I have already gone through it. and i have read some post at the IE site. i tihnk opacity is not supported in IE8. But i wonder the things which were working in IE6 and IE7 not working in IE8. this is really ridiculous.

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Just tested opacity/Filter:alpha(op acity) in IE8 and it works fine...here's the
        W3Schools link that I used to do so.

        -Frinny

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          Just noticed your post, Frinny. W3Schools has nothing to do with the W3C and is totally unrelated.

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            I know that, but it's helpful in getting things to work sometimes :)

            Comment

            • drhowarddrfine
              Recognized Expert Expert
              • Sep 2006
              • 7434

              #7
              Yeah but you called it a W3C link which might confuse others.

              Comment

              • Frinavale
                Recognized Expert Expert
                • Oct 2006
                • 9749

                #8
                Ahh I see, I changed it :)

                Comment

                • drhowarddrfine
                  Recognized Expert Expert
                  • Sep 2006
                  • 7434

                  #9
                  Still not right. It's W3Schools not W3CSchools.

                  Comment

                  Working...