PDA

View Full Version : PNG background color matching issues




davecuse
May 2, 2005, 09:39 AM
I'm having some issues with the background color of my header image matching the background color of my website. My CSS defines the background color of the header as #34301D, I've gone into Photoshop and filled the background color of my logo as the same. I then do a Save for Web in photoshop and create header.png as PNG 24. The background color of the image appear fine in Safari, Firefox begins to to show a slight differentiation, then when I checked on IE6 it looks like 2 completely different colors.

Alternatively is there a way that I'm just not aware of to force IE to support alpha transparency?



Squareball
May 2, 2005, 10:40 AM
Read The Sad Story of PNG Gamma Correction (http://hsivonen.iki.fi/png-gamma/)

jeremy.king
May 2, 2005, 01:13 PM
what about using a single pixel image with the same color/format as your header image as the background "color"?

davecuse
May 2, 2005, 01:47 PM
what about using a single pixel image with the same color/format as your header image as the background "color"?

I considered that too, after consulting my old friend google there are a few hacks around to make IE5.5 and newer compliant with PNGs.

I'm trying to implement this one right now, but I'm getting mixed results.
http://koivi.com/ie-png-transparency/

I'll report back if I get it working properly.