1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Problem PNG background images IE6 and IE5

Discussion in 'CSS' started by ayyappansan, Nov 2, 2009.

  1. #1
    Dear Friends

    How to make PNG images transparent in IE5 and IE 6
     
    ayyappansan, Nov 2, 2009 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    You can't. Actually, there are hacks to make it work in IE6 somewhat but you have to google for that.
     
    drhowarddrfine, Nov 2, 2009 IP
  3. ayyappansan

    ayyappansan Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank u ..... try it css hacks in css
     
    ayyappansan, Nov 2, 2009 IP
  4. drawer

    drawer Peon

    Messages:
    236
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try a program called TweakPNG... it removes the gamma etc.
     
    drawer, Nov 2, 2009 IP
  5. LeetPCUser

    LeetPCUser Peon

    Messages:
    711
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #5
    LeetPCUser, Nov 3, 2009 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #6
    Actually, you can make transparent .png that works all the way back to IE4 - the problem is it's single color transparency in a palettized image - just like .gif

    Really I've rarely seen a design where alpha is NECESSARY since most of the time you can pre-composite the image - which has the bonus of smaller filesizes. I avoid alpha .png's not just because of their lack of IE 6/earlier support, but because they are generally a waste of bandwidth.
     
    deathshadow, Nov 3, 2009 IP
  7. surbjit

    surbjit Guest

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Theres a htc file somewhere called iepng fix. it used to be on my computer but i lost it sorry :(.
     
    surbjit, Nov 3, 2009 IP
  8. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #8
    read the title

    .png background images. pngfix.htc only works on IMG tags.
     
    deathshadow, Nov 3, 2009 IP
  9. Freditpl

    Freditpl Peon

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Please try following:
    
    <!--[if lte IE 6]>
    <style type="text/css">
    .class {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='bla.png',sizingMethod='image');}
    </style>
    <![endif]-->
    
    Code (markup):
    but you can not use repeat-x for PNG files
     
    Freditpl, Nov 5, 2009 IP
  10. jj1

    jj1 Active Member

    Messages:
    892
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #10
    Don NOT use PNG images. If using Fireworks check their help for how to create a transparent gif - in bathrooms bury st edmunds I created the "bathrooms designed and installed to a high standard" text as a transparent gif in Fireworks and then overlaid this gif on top of a semi-opaque white background.
     
    jj1, Nov 13, 2009 IP
  11. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #11
    I believe you mean don't use ALPHA transparency/true-color .png. Palettized .png has no compatibility problems, and for images of more than 16 colors results in a smaller filesize and is functionally identical to .gif

    The only real issue is color matching, as IE applies the file gamma to .png's. - if you don't need color matching or have fullbright/dark as 255,0 it's a non-issue, but if you NEED it to work you can fix that by deleting the GAMA line using tweakpng.

    http://entropymine.com/jason/tweakpng/

    Unless you are dealing with 16 color images, we can do a hell of a lot better than .gif since IE added support in version 3. YES, I SAID IE3!!!
     
    deathshadow, Nov 13, 2009 IP
  12. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Personally I think if it's possible you should try and include the background as part of the image. Obviously this is only possible in certain circumstances, and has the added problem that if you ever want to change certain parts of the design a few images may need updating (not the biggest of deals, depending on the layout).
     
    wd_2k6, Nov 13, 2009 IP
  13. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #13
    Which is what 'pre-compositing' means.
     
    deathshadow, Nov 13, 2009 IP
  14. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Thanks, i'm not going to pretend i already knew that, because well I didn't!
     
    wd_2k6, Nov 13, 2009 IP
  15. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #15
    Since when? It's worked on background images for a while now, even tiles (though it can murder a slow system). Hate having to use alpha png's, then again, me & designers often don't quite see eye to eye when it comes to what should be left to print and what should be included in web design.
     
    rochow, Nov 20, 2009 IP
  16. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #16
    Since when? Did they add positioning and tiling support? It might ALMOST be worth using at that point

    if alpha .png weren't complete bloated trash in the first place usually not worth using except during the design stage before you composite it all down.

    But then, it seems like people don't seem to be taking issue with having 1 megabyte or larger websites anymore - Morons.
     
    deathshadow, Nov 21, 2009 IP
  17. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #17
    rochow, Nov 21, 2009 IP