SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard
    Join Date
    Jan 2005
    Location
    blahblahblah
    Posts
    1,447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PNG, <img>, IE and unwanted blue

    Hello,
    I have a PNG img that is included like this:

    <h1 id="header"><img src="images/title" alt="title img" /></h1>

    In IE the image appears with a transparent blue over it.

    No idea why.

    In firefox it's ok.

    I tried this:

    img {
    background:#fff;
    }

    but as expected it didn't change a thing.

    Anybody had the same problem???


  2. #2
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it a PNG image with alpha transparency?
    Simon Pieters

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,555
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    If as zcorpan has already pointed out the image is using alpha transparency then IE6 and less doesn't support it. You can use a proprietary ie filter for ie5.5. and 6 and you can see it in effect in the following link.

    http://www.pmob.co.uk/temp/test-alphafilter.htm

  4. #4
    SitePoint Wizard
    Join Date
    Jan 2005
    Location
    blahblahblah
    Posts
    1,447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh I see,,, that was the problem

    thanks a lot to you both.


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
  •