Are png images cross-browser compatible?

killbill picture killbill · Jun 11, 2009 · Viewed 8k times · Source

I just wanted to know - do all modern browsers support png images including 16 6.0? thks

Answer

Lucas Jones picture Lucas Jones · Jun 11, 2009

IE 6.0 does not support 32-bit transparent PNGs correctly. It renders the alpha channel (transparency) as a plain gray background. (Paletted PNGs with transparency are fine in IE6.) Most other browsers work correctly, though, including IE 7.0+, Firefox, Safari, Chrome, Netscape, Opera, Epiphany, Konqueror...

The easiest solution for IE 6.0 transparency is to use GIFs instead. If this is not possible, a JavaScript and CSS solution is available at 24ways.