NetTalk Central

Author Topic: IE6 and png Images  (Read 7923 times)

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
IE6 and png Images
« on: June 22, 2007, 01:26:30 AM »
Doing all my testing on Firefox and everything looks great!

Cranked up IE6 and all the png images on buttons etc that have transparent backgrounds now display with an ugly black background. Any way to fix?

Also, tested on Safari and the buttons for the browse (first, Next, Previous and last) display vertically not horizontally. Where do I look to try and fix this one?

Cheers,

Kevin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: IE6 and png Images
« Reply #1 on: June 25, 2007, 12:49:49 AM »
Hi Kevin,

IE 6 does have some problems with PNG's.
In the short term there's not an awful lot you can do about it. There is some code in NetTalk that can help (in some cases) but it doesn't work if the image is "hidden" as the page opens.

One option is to not use PNG, but use GIF - but of course GIF has only "hard" transparencies, and has a limited palette.

On the up side, IE 7 is an "automatic upgrade" for IE 6, so IE 6 folks should be encouraged to use it. Apart from anything else it's more secure.

Cheers
Bruce

Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
Re: IE6 and png Images
« Reply #2 on: June 27, 2007, 04:45:11 AM »
Where do I look to try and fix this one?

Hello Kevin,

there is a small script that needs to be uploaded and referred to in your CSS:

Script:
http://trac.symfony-project.com/trac/browser/trunk/data/web/sf/sf_default/css/pngfix.htc?rev=2692

or http://tinyurl.com/23x5t3


In your page you add

<STYLE type="text/css">
IMG { behavior: url("pngfix.htc"); }
</STYLE>

hth
Wolfgang