• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

PNG loading diferent in IE/Fox?

Wojtek

W as in Whisky
NLC
So I have this image I made and saved as .png

firefox shows one layer with 80% opacity while IE shows that layer with 100% opacity.
MS Picture Viewer, same as IE, 100% opacity.

I'm confused now. Why? Isnt a png suposed to be a flat image, layerless?
 
my cell's background was shining truh the transparancy part of the pic. heh

silly me..
 
Wojtek, depending on whether you use PNG-8 or PNG-24, the transparency will be different. Also, make sure the "Matte" (Background if transparency is set, but nothing there) is set to none. (Since setting it to none will do one of two things: white or transparent)

Also, make sure the picture isn't loaded into a FRAME, (IFRAME should work just fine though) as that will tend to change the matte depending on the browser, and not the image itself.

Otherwise, if this still doesn't help you, try doing a GIF transparency (Make sure it's dither or pattern. Use Pattern for designs that are more technical.)
 
ie has no support for 24 bit transparency. they do for 8 bit, but id rather use a gif then a png at 8 bits, its basically the same.
 
pdrucker said:
ie has no support for 24 bit transparency. they do for 8 bit, but id rather use a gif then a png at 8 bits, its basically the same.

Since when does IE only support 8-Bit PNG Transparency? I've been able to use 24-Bit Transparencies on every forum basically... but then again....
 
IE has never supported alpha transparency, but it's possible to get around that with the DXImageTransform filter.
 
As far as I know there is no way to get transparency in IE. I know that opacity doesn't work in CSS in IE either....which really bugs me since I love ising it on my sites!
 
Paul White said:
I know that opacity doesn't work in CSS in IE either....which really bugs me since I love ising it on my sites!
Sure it does. There's almost always a way to get something to work in IE, you just have to know how.

Opacity:
Code:
filter: Alpha(opacity=50); /* IE percentage*/
-moz-opacity: .5; /* Mozilla decimal */
 
Bruce said:
Sure it does. There's almost always a way to get something to work in IE, you just have to know how.

Opacity:
Code:
filter: Alpha(opacity=50); /* IE percentage*/
-moz-opacity: .5; /* Mozilla decimal */

Yeah, but this won't always work with stuff like the A:Hover style I believe.
 
I noticed that PNG colors ALSO don't match colors in CSS. I noticed this after creating my partial background in photoshop and it not matching when viewed in firefox.
 
That's because PNGs save all colors (Unless it's PNG-8, which saves like a GIF w/o dithering) so that no "Lossy" will occur.
 
Back
Top