I recently put together a quick little test to see if transparent PNG's would render correctly in various browsers when they were used as a background image. I was shocked that all of the modern browsers I tested with supported the transparencies except for Internet Explorer (I wasn't shocked that it didn't work in Internet Explorer, I was shocked that it did work in everything else). The latest version of IE on both Mac OS X (5.2.x so it wasn't a surprise) and Windows XP rendered them like they were gif's with the transparency fading to white instead of transparent. I was using CSS for both the main page background (no transparencies of course), which was a tiling pattern, and for the content background, which was just a simple white fill at 50% opacity with a black outline and a drop shadow. It passed the test in the following browsers:
Camino 0.7 - Mac OS X
iCab 2.9.7 - Mac OS X
Mozilla 1.6b - Mac OS X
Mozilla Firebird 0.7 - Mac OS X
Netscape 7.1 - Mac OS X
Netscape 7.1 - Windows XP
OmniWeb 4.5 - Mac OS X
Opera 6.03 - Mac OS X
Opera 7.23 - Windows XP
Safari 1.0.1 - Mac OS X
But it failed in these:
Internet Explorer 5.2.2 - Mac OS X
Internet Explorer 6.0.2 - Windows XP
So anyway there are a few very savvy people here who might know of a way to get this to work correctly in IE (at least in IE6) since I was wanting to use this effect in a web site with user changeable or randomly selected backgrounds but I am not willing to cut out the most used browser on the planet. Now then for the fun part, it must be a client side solution, it can't use flash, and it must validate as XHTML-Traditional. So does anyone know of a solution?
hmmm, im not sure exactly what you are refering to, but i've tested some PNG's on most broweser, including IE 5.2.2 and its worked entirely. I've used them as backgrounds in tables, and the transparency was fully supported. However, im not sure about the main page background, im slightly confused on how that would work.
--
Devin Taylor
Thinking Allowed Graphics
---------
We're All Sick.....Life Is A Beautiful Tragedy
No I am using them as a table background with CSS but I also tried it with them set as the table background and it had the same results (but of course doesn't verify as XHTML-Traditional). There is a main background which is a jpeg (also set in CSS but also tested as set in the body tag with no change in the outcome) and then there is the background used for the tables which is the transparent png. I have posted screenshot of this in my gallery so you can see how it renders. The top one is Safari 1.1 and the lower one is Internet Explorer 5.2.2 both running in Mac OS X 10.2.8. The screen shots will hopefully be here once DA quits being a pain.
Note: this is not a production web site it is just a test but both the XHTML and CSS are valid according to the w3c.org valuators. The top and bottom images work properly because they are just png image's using the img tag instead of the CSS background-image element.
hmmmm, well i see what's going on with your picture. I will admit i dont know either XHTML or CSS, and im guessing this is were the problem is occurring????
I ran a test just a moment ago with dreamweaver, just plain old HTML using a jpg background and a 40% opaque PNG for a table background. I tested it in IE 5.2.2 on Mac OS 10.3.2 and it worked exactly as should.
Like i said I'm not sure if you stating that the problem only exists for XTHML and CSS, but with normal HTML is seems to be supported just fine.
--
Devin Taylor
Thinking Allowed Graphics
---------
We're All Sick.....Life Is A Beautiful Tragedy
Well, i'll be damned... I swear i had it working last night, but i redid it today so i could post a link up. and well what do yah know, it did just like you said.... I don't know what i was doing last night that made me think it worked, but i swear it did..... Well i guess i've been humbled, and i will crawl back into my hole admitting i was wrong.
--
Devin Taylor
Thinking Allowed Graphics
---------
We're All Sick.....Life Is A Beautiful Tragedy
We want to know what love means to you!
Get your creative juices flowing and design a movie poster for "Paper Heart" that focuses on the theme "What Does Love Mean to Me?".
This is a collection of deviations showing real Pinups in the classic Retro poses from various Artists. For the 4rd time I present a variation of Vintage Pinup Queens as well as fresh modern Pinup art. If you love Polkadots, seamed Nylons, Plateau-Heels and and Miles-long-legs you should not miss this collection.
When it comes to community spirit, `Rushy is a shining example. From participating in devmeets, to providing positive encouragement to other artists, `Rushy can always be found demonstrating what it really takes to be a true deviant. It's without any hesitation that we are delighted to award the Deviousness Award for July 2009 to `RushyRead More
Camino 0.7 - Mac OS X
iCab 2.9.7 - Mac OS X
Mozilla 1.6b - Mac OS X
Mozilla Firebird 0.7 - Mac OS X
Netscape 7.1 - Mac OS X
Netscape 7.1 - Windows XP
OmniWeb 4.5 - Mac OS X
Opera 6.03 - Mac OS X
Opera 7.23 - Windows XP
Safari 1.0.1 - Mac OS X
But it failed in these:
Internet Explorer 5.2.2 - Mac OS X
Internet Explorer 6.0.2 - Windows XP
So anyway there are a few very savvy people here who might know of a way to get this to work correctly in IE (at least in IE6) since I was wanting to use this effect in a web site with user changeable or randomly selected backgrounds but I am not willing to cut out the most used browser on the planet. Now then for the fun part, it must be a client side solution, it can't use flash, and it must validate as XHTML-Traditional. So does anyone know of a solution?