<?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>Gusdwi dot Info &#187; background</title>
	<atom:link href="http://gusdwi.info/tag/background/feed" rel="self" type="application/rss+xml" />
	<link>http://gusdwi.info</link>
	<description>HTML - CSS - WEB DESIGN - SHARING ABOUT LIVES</description>
	<lastBuildDate>Mon, 26 Jul 2010 07:36:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to create  PNG transparency work in IE 6</title>
		<link>http://gusdwi.info/create-png-transparency-work-in-ie-6.html</link>
		<comments>http://gusdwi.info/create-png-transparency-work-in-ie-6.html#comments</comments>
		<pubDate>Fri, 17 Apr 2009 07:59:48 +0000</pubDate>
		<dc:creator>Gusdwi</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[background]]></category>

		<guid isPermaLink="false">http://www.gusdwi.info/?p=83</guid>
		<description><![CDATA[If you inserting images in PNG format with transparancy will leave you with a white background in IE6. Why ...?]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-85" title="firefox-view" src="http://www.gusdwi.info/wp-content/uploads/2009/04/firefox-view-150x150.jpg" alt="firefox-view" width="200" height="200" /><img class="alignright size-thumbnail wp-image-86" title="ie6-view" src="http://www.gusdwi.info/wp-content/uploads/2009/04/ie6-view-150x150.jpg" alt="ie6-view" width="200" height="200" /><br class="clr" /></p>
<p>Let’s take a look at the difference of PNG images (with transparency) above on Mozilla Firefox and Internet Explorer 6<br />
If you inserting images in PNG format with transparancy will leave you with a white background when saw in Internet Explorer 5 or 6.<br />
<span id="more-83"></span></p>
<p>It makes your image looks not good and this is really the last thing any web designer would want on their website.<br />
Don&#8217;t worry about that, I&#8217;ll give you  a solution on how to solve this.</p>
<h4><span style="text-decoration: underline;">Solution:</span></h4>
<p>Create a container to store your image. In this case I use a &lt;div&gt;.<br />
Create your &lt;div&gt; inside your &lt;body&gt;, just like this:</p>
<blockquote><p>&lt;body&gt; &lt;div class=&#8221;flower&#8221;&gt;&lt;/div&gt; &lt;/body&gt;</p></blockquote>
<p>Next, create a &lt;style&gt; if you dont have one. Make sure they are between your &lt;head&gt; &lt;/head&gt;. Put the following css inside:</p>
<blockquote><p>&lt;style&gt;<br />
body {background-color:#000}<br />
div.flower {background:url(flower-transparent.png) no-repeat; height:100px; width:100px}<br />
&lt;/style&gt;</p></blockquote>
<p>The CSS codes above displays your PNG image in a &lt;div&gt;. Works fine for Mozilla Firefok, but not for Internet Explorer. To get it working cross browser, create another set of css just for Internet Explorer right below your &lt;style&gt; &lt;/style&gt;.<br />
Insert the following codes:</p>
<blockquote><p>&lt;!–[if gte IE 5]&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
div.flower {<br />
background:none;<br />
filter:progid:DXImageTransform.<br />
Microsoft.AlphaImageLoader  (src=’flower.png’ ,sizingMethod=’crop’);<br />
}<br />
&lt;/style&gt;<br />
&lt;![endif]–&gt;</p></blockquote>
<p>Your IE should now give you a perfect blend like the picture below.</p>
<p><img class="size-medium wp-image-87 alignnone" title="ie6-view-after" src="http://www.gusdwi.info/wp-content/uploads/2009/04/ie6-view-after-300x300.jpg" alt="ie6-view-after" width="300" height="300" /></p>
]]></content:encoded>
			<wfw:commentRss>http://gusdwi.info/create-png-transparency-work-in-ie-6.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
