SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2007
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    allowing transparent PNGs in IE?

    Hi there,

    I have some transparent PNG backgrounds in my page, but the problem is IE doesn't allow the transparency. I was wondering if there is a way I can allow transparency?

    Many thanks!

  2. #2
    SitePoint Enthusiast
    Join Date
    Sep 2004
    Location
    1337
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use gifs, IE doesn't support PNG transparency

  3. #3
    SitePoint Addict
    Join Date
    Mar 2007
    Posts
    286
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are some work arounds available but I would follow the previous advice as they rely on javascript. If you are really interested a search on these forums should find one.
    http://www.glasys.co.uk
    Noli Illegitimi Carborundum

  4. #4
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you really need to use PNG's then look here for the workkaround::

    http://geoland.org/2007/03/transpare...ut-javascript/
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)

  5. #5
    SitePoint Zealot
    Join Date
    Nov 2007
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks.. I used Jimmy's idea
    The trouble I had with a GIF was the edges were not clean like a JPG or PNG.. I really needed to have transparency and clean edges.

    Thanks again.

  6. #6
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IE7 supports alpha channels in PNG, so depending on your audience, you might be able to ignore IE6's quirks all together. In my experience, the filter-hacks are flaky and slows the browser down considerably - or crashes it even. If you absolutely need IE6 support, you would probably be better off using images without transparency and just render them specifically to the background colour.


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
  •