View Full Version : PNG transparency
georgemonster
May 4th, 2005, 01:55 AM
I set the background of a table cell to a PNG image that has transparency in it but when viewed in IE, it doesn't work.
When viewed in Dreamweaver it does work. Can't figure this out. Is there another way of doing this?
www.silvertortoise.co.uk (http://www.silvertortoise.co.uk)
cheers,
George
senocular
May 4th, 2005, 05:17 AM
IE doesnt support PNG transparency... not natively at least. There are workarounds you can google (though I dont recall if any work for table backgrounds).
.soulty
May 4th, 2005, 05:19 AM
off the bat IE pretty sadly does not support transparent png's yet..
to create something like you want, you have to do something like slice up the images and include a bit of the background pattern and drop shadow and then in your html page include the tile as a background image. You might have lining up problems but you could try to counter this with background positioning or something else im not aware of.
Hope that helps you, and if any one else has a better solution, post it, because i would like to know as well. lol
edit:: found this .. reading it at the moment
http://koivi.com/ie-png-transparency/
georgemonster
May 4th, 2005, 05:31 AM
cheers guys, I'll have a fiddle around and hope it works!
.soulty
May 4th, 2005, 05:48 AM
that link i provided is crazy, you have to use a php code to replace your tags and replaces it with a
"1px x 1px PNG-8 image containing binary transparency (which MSIE does support)" hmm you tried this georgem?
georgemonster
May 4th, 2005, 09:31 AM
I changed it so that there isn't any transparency already.
I've read the article...interesting, thanks.
I'll get back to this tomorrow and change it back! yay. i think it said that the php code only works in IE though. :(
G
.soulty
May 4th, 2005, 11:14 AM
^ well obviously it only works in ie, all other browser support png transparency. your first link viewed in firefox and opera showed up fine.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.