<?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>Chapter 42 &#187; png</title>
	<atom:link href="http://chapter42.whitewhale.net/tag/png/feed/" rel="self" type="application/rss+xml" />
	<link>http://chapter42.whitewhale.net</link>
	<description></description>
	<lastBuildDate>Thu, 30 Sep 2010 17:20:47 +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>iepngfix.htc</title>
		<link>http://chapter42.whitewhale.net/2008/06/04/iepngfixhtc/</link>
		<comments>http://chapter42.whitewhale.net/2008/06/04/iepngfixhtc/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 17:30:47 +0000</pubDate>
		<dc:creator>Donald</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://chapter42.whaleblogs.net/?p=28</guid>
		<description><![CDATA[Internet Explorer 6 is a web development headache for many reasons, but its lack of support for PNG alpha transparency is one of the most grating. It's more-or-less a given that any cutting-edge design (even <a href="http://www.kenyon.edu/">a relatively minimalist one</a>) is going to have a place where one layer shines through another, or a single transparent image should be matched to multiple background colors, or—most commonly—anti-aliased text is placed over a photo or texture.

Getting these PNGs to actually be transparent is no longer a major issue—we've used a few different approaches over the years, but settled on Angus Turnbull’s <a href="http://www.twinhelix.com/css/iepngfix/">iepngfix.htc</a> as the most straightforward drop-in solution out there. The way it works is just really smart.

But while building out some recent client projects, we just couldn't get it to catch...]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer 6 is a web development headache for many reasons, but its lack of support for PNG alpha transparency is one of the most grating. It&#8217;s more-or-less a given that any cutting-edge design (even <a href="http://www.kenyon.edu/">a relatively minimalist one</a>) is going to have a place where one layer shines through another, or a single transparent image should be matched to multiple background colors, or—most commonly—anti-aliased text is placed over a photo or texture.</p>
<p>Getting these PNGs to actually be transparent is no longer a major issue—we&#8217;ve used a few different approaches over the years, but settled on Angus Turnbull’s <a href="http://www.twinhelix.com/css/iepngfix/">iepngfix.htc</a> as the most straightforward drop-in solution out there. The way it works is just really smart.</p>
<p>But while building out some recent client projects, we just couldn&#8217;t get it to catch. We checked and double-checked the file paths, and re-exported the PNG images, and finally copied a working example from a live client site, but nothing seemed to do it. Because IE has no decent debugger, I removed the conditional comment to see what I could learn in <a href="http://www.getfirebug.com/">Firebug</a>.</p>
<p>It turns out that our staging server sends the <em>.htc</em> file as <em>text/plain</em>, while the working client version was serving <em>text/x-component</em>. Changing out server config to mimic this fixed the problem. Later, some Googling revealed that the release notes for the <a href="http://www.twinhelix.com/test/">newest beta version</a> address this (and even include a PHP solution that serves the file while sending the correct headers).</p>
<p>There are still a whole host of limitations: no repeating images, weird layering glitches that happen even in IE7, and really bizarre link clickability issues. But iepngfix gets far enough to solve 90% of the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://chapter42.whitewhale.net/2008/06/04/iepngfixhtc/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

