codeRambler Ramblings on code, the web, and technology

Make your PNGs 32-bit
Wednesday June 13th 2007, 11:58 am
Filed under: CSS, Web development

You should always ensure any alpha transparent PNGs are 32-bit to ensure that they always display the same colour across all browsers. Recently, Firefox and IE displayed a particular 24-bit alpha transparent PNG differently. Changing the PNG to 32-bit fixed this and both browsers rendered the PNG the same.

I have also experienced this with Safari 2 on MacOSX – again, switching to 32-bit PNG fixed the problem.

Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>