You are currently offline, waiting for your internet to reconnect

PNG Files Do Not Show Transparency in Internet Explorer

This article was previously published under Q294714
If you browse to a Web page that contains an image that has a transparent background in Portable Network Graphics (PNG) format, the image background may appear to be gray rather than transparent.
Web developers who work with PNG files can use the AlphaImageLoader filter, as demonstrated in the following example:
<html><head></head><body bgColor="blue"><!-- This DIV is the target container for the image.  --><DIV ID="oDiv" STYLE="position:absolute; left:140px; height:400; width:400;     filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(     src='image.png', sizingMethod='scale');" ></DIV></body></html>				
For more information on the AlphaImageLoader filter, see the following Microsoft Developer Network (MSDN) Web site:For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:

Article ID: 294714 - Last Review: 07/19/2007 02:41:00 - Revision: 4.4

  • Microsoft Internet Explorer 6.0
  • kbinfo kbdhtml KB294714