What web browsers do not support the png image type, and what is a better alternative for those browsers?
4 Answers
Essentially all browsers. PNG support has been in Internet Explorer since version 4, and Mozilla Firefox, Chrome, and Safari have supported it since their initial releases.
24-bit transparency is the one issue, it doesn't work in IE6 or lower. There are workarounds you can use that fix it, though. The other common image types, GIF and JPEG, don't support 24-bit transparency at all, so there's no alternative other than the workarounds.
The only modern browsers it won't work in are screen readers / text browsers for visually impaired folks and command-line enthusiasts. The proper alternative is providing an alt
attribute on your img
tags.

- 176,543
- 40
- 303
- 368
-
K, Thanks! What workarounds are there for displaying an html element with a partially transparent background? – Web_Designer Apr 13 '11 at 14:50
-
There are a lot, including plugins for most javascript libraries like jQuery. Google for "pngfix" and you'll find dozens. – ceejayoz Apr 13 '11 at 15:00
-
Just remember that the filter-based PNG alpha-channel transparency fix is a performance hog and is certainly not something that you want to do with tens or hundreds of images. – Arc Apr 13 '11 at 15:14
-
1@Archimedix Not necessarily a bad thing - if everyone's IE6 runs slow, maybe they'll upgrade (or buy a faster computer that comes with IE7+ pre-installed)... – ceejayoz Apr 13 '11 at 15:15
A good alternative for IE6, to support PNG transparency, is CSS3 PIE (javascript). It has many other interesting features as well of IE support.
As well this SO thread may help: How to get PNG transparency working in browsers that don't natively support it?

- 1
- 1

- 22,336
- 11
- 85
- 113
All common browsers(Firefox, Internet Explorer, Opera, Safari, Chrome) support the png image format. However, some old versions have problems displaying transparent PNG pictures (e.g. Internet Explorer 6.x and lower). There are several alternatives depending on what you are trying to do.

- 2,904
- 5
- 25
- 38
The majority of user agents support PNGs. Older versions, and non-graphical browsers e.g. Lynx don't.

- 2,418
- 16
- 15