<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Tutorials, Resources, Web Trends, Code Snippets, Php scripts, Opensource, Ecommerce, Cms, Html, Xhtml scripts, Themes, Templates, Css, Psd tuts, Photoshop,tuts,web,website,tutorial,web tutorial &#187; Css Codes</title>
	<atom:link href="http://www.freshtuts.net/category/scripts/css_codes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.freshtuts.net</link>
	<description>Web design resources snippets of codes like php css html xml xhtml and tutorials on howto design sites and freebies of icons templates psd files psd templates themes</description>
	<lastBuildDate>Fri, 16 Dec 2011 19:44:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS PNG Hack For Internet Explorer (IE)</title>
		<link>http://www.freshtuts.net/css-png-hack-for-internet-explorer-ie/</link>
		<comments>http://www.freshtuts.net/css-png-hack-for-internet-explorer-ie/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 14:17:46 +0000</pubDate>
		<dc:creator>Bulent</dc:creator>
				<category><![CDATA[Css Codes]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://www.freshtuts.net/?p=132</guid>
		<description><![CDATA[It’s been a problem for many developers. How do you ...]]></description>
			<content:encoded><![CDATA[<p>It’s been a problem for many developers. How do you create a transparent image for Internet Explorer 6 using a PNG. As you are all probably aware IE 6 does not support transparent PNGs but don’t panic there is a solution.</p>
<h3>The Solution</h3>
<p>This is by no means new; however, I thought it was worth while posting. By using Alpha filters designed specifically for IE we can force Internet Explorer to behave as expected.  As shown using the code laid out below:</p>
<h3>The Code</h3>
<p>The CSS source is as below.  The first class defines the Alpha filter applied to the containing DIV and also sets a height and width (This has to be the same as the PNGs height and width).</p>
<p>The second class simply hides the original PNG from all versions of Internet Explorer 6 and below.  This is applied as we do not want Internet Explorer to see the PNG twice with the non-transparent version still showing.</p>
<p><span style="color: #ff0000;">.ie-png {<br />
_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=&#8217;imagename.png&#8217;,sizingMethod=&#8217;scale&#8217;);<br />
height: 50px;<br />
width: 257px;<br />
}</span></p>
<p><span style="color: #ff0000;"><br />
</span></p>
<p><span style="color: #ff0000;">.ie-hide{<br />
border:0px solid #FFFFFF;<br />
_display:none;<br />
}</span></p>
<p>The HTML is also very simple.  Simply add the PNG and wrap it with a containing DIV using the classes as shown below.</p>
<p><span style="color: #ff0000;">&lt;div class=&#8221;ie-png&#8221;&gt;<br />
&lt;img src=&#8221;yourimagename.png&#8221; class=&#8221;ie-hide&#8221; alt=&#8221;freshtuts is a life saver&#8221; title=&#8221;freshtuts.com is full of tutorials for webmasters&#8221; /&gt;<br />
&lt;/div&gt;</span></p>
<p><span style="color: #ff0000;"><br />
</span></p>
<div style='display:none' id="post-refEl-132"></div>]]></content:encoded>
			<wfw:commentRss>http://www.freshtuts.net/css-png-hack-for-internet-explorer-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

