I've found a couple of pages talking about the PNG transparency problem in IE, and I've actually managed to fix it, but when I fix it Firefox (and all other non IE browsers) stop working. Here's my CSS code:
Even if I put the filter last, the fact that the background-image loads means the transparency doesn't work. If I remove the background-image bit it works in IE, but obviously not any other browser. Is there a way I can put some sort of javascript or something in the CSS so that only IE reads the filter and all other browsers read the background-image?
Thanks a lot,
Dan
Code:
#whole {
width:730px;
height:432px;
padding:10px;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/overlay.png', sizingMethod='scale');
background-image:url(images/overlay.png);
}
Even if I put the filter last, the fact that the background-image loads means the transparency doesn't work. If I remove the background-image bit it works in IE, but obviously not any other browser. Is there a way I can put some sort of javascript or something in the CSS so that only IE reads the filter and all other browsers read the background-image?
Thanks a lot,
Dan