<?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>swape.net &#187; ie6</title>
	<atom:link href="http://www.swape.net/w/tag/ie6/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.swape.net/w</link>
	<description>alireza balouch</description>
	<lastBuildDate>Wed, 21 Jul 2010 19:00:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Semi-transparent png fix in IE6 with CSS</title>
		<link>http://www.swape.net/w/2007/02/semi-transparent-png-fix-in-ie-with-css/</link>
		<comments>http://www.swape.net/w/2007/02/semi-transparent-png-fix-in-ie-with-css/#comments</comments>
		<pubDate>Tue, 06 Feb 2007 20:30:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[This example shows how you can show semi-transparent png images in IE and don't mess up the code in other browsers. It uses only CSS and no JavaScript.I use the attribute style to make a style for other browsers then IE. And I'm using the filter style that works only for IE in the normal [...]]]></description>
			<content:encoded><![CDATA[<p>This example shows how you can show semi-transparent png images in IE and don't mess up the code in other browsers. It uses only CSS and no JavaScript.I use the attribute style to make a style for other browsers then IE. And I'm using the <strong>filter</strong> style that works only for IE in the normal section.But first you have to make a semi transparent png image.<br />
Then make an div layer and set a class name "mydiv"</p>
<p>And here is the CSS code:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="re1">.mydiv</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">background-repeat</span>: <span class="kw2">repeat</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">position</span>: <span class="kw2">relative</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">display</span>: <span class="kw2">block</span>;</div>
</li>
<li class="li2">
<div class="de2">width<span class="re2">:<span class="re3">250px</span></span>;</div>
</li>
<li class="li1">
<div class="de1">height<span class="re2">:<span class="re3">200px</span></span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">text-align</span>: <span class="kw2">center</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">/* Mozilla Firefox and other non IE based browsers ignores the filter style*/</span></div>
</li>
<li class="li1">
<div class="de1">filter<span class="re2">:progid</span><span class="re2">:DXImageTransform</span><span class="re1">.Microsoft</span><span class="re1">.AlphaImageLoader</span><span class="br0">&#40;</span> enabled=true, sizingMethod=scale src=<span class="st0">&quot;back_g.png&quot;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2"><span class="br0">&#125;</span>   </div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">/* IE ignores this part IE can not read styles with [attribute]*/</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">.mydiv</span><span class="br0">&#91;</span>class<span class="br0">&#93;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">background-image</span>: <span class="kw2">url</span><span class="br0">&#40;</span><span class="re4">back_g<span class="re1">.png</span></span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">body<span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">background-image</span>: <span class="kw2">url</span><span class="br0">&#40;</span><span class="re4">BG<span class="re1">.png</span></span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">background-repeat</span>: <span class="kw2">repeat</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>Since IE can not show semi-transparent png images, we have to use the filter style that only works in ie. But if we use this code we have to make sure that other browsers can show the png file as well. So we use the styles with attributes. And since IE can not read this part, we can put everything that IE dose not need to read there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swape.net/w/2007/02/semi-transparent-png-fix-in-ie-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
