IE 6 and transparent png's : How to get around it?

Soldato
Joined
4 Feb 2004
Posts
13,430
Location
Écosse
Been working on a basic 3 page site and for the main page I have used a transparent png that covers a fair bit of the screen. Totally forgot about IE 6.0 not playing ball with them. :(

Suggestions on how to solve/get around this?.

Thanks.
 
Thanks, I found this and think I will give it a go, is that what you meant when you mentioned pngfix? :-

http://homepage.ntlworld.com/bobosola/pnghowto.htm

Downloaded the JS include version, uploaded the js to the site and added the script text to each page.

Only thing I'm not clear about is they mention that "You must have height and width attributes specified for each image". Whereabout do you add the height and width in?. :confused:
 
height and width are img attributes

so

<img width="200" height="200" src="../../rarg.png">
 
Scratch that, just checked and its working fine in IE 6 now. I guess if you use the js include method you don't have to specify width and height. Cool!!. :D
 
You need to put the height and width in the HTML for the image, so you'd have...
Code:
<img src="images/myimage.png" />
which you'd need to turn into
Code:
<img src="images/myimage.png" width="100" height="20" />

Personally I use a .htc file which also allows backgrounds with PNGs to be transparent - have a google and it should turn something up.
 
Back
Top Bottom