[eluser]Edemilson Lima[/eluser]
To made a transparent
antialised 32-bit PNG (True Color image with Alpha opacity) work fine in IE 6/7 and FireFox, you must use:
Code:
<span style="width:105px; height:30px;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png');">
<img style="filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" src="image.png"
width="105" height="30" border="0" alt="I fit in any background! =)"></span>
Notice that you must specify the filename, width and height twice.
Of course this Mickey$oft-proprietary IE style will not be valid in Firefox (and maybe not necessary in IE7), but this hack will work anyway. A nice jQuery plug-in to handle this would be better.