Archive for January, 2008

Sometimes using AlphaImageLoader for PNG isn’t worth it

Thursday, January 3rd, 2008

IE6 forced me to abandon using filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(); to render a png background transparent. The first problem was that links in the div with AlphaImageLoader were no longer working. The solution was to put the png in it’s own div, and absolutely position the div and use AlphaImageLoader. Now the links are working. The second problem I wasn’t able to solve – the text and links were using the page background color instead of the color in the styelsheet. Also, the links had a background gif (a right-aligned arrow) with transparency. The transparency was working, but every pixel in the image with a color was converted to the page background color, just like the text and links. So defeated I replaced the pngs with jpgs, although I probably saved a few bytes because instead of 2 images layered on top of each, I now had just 1 image with 2 slices positioned next to each other.