<?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>ZENVERSE &#187; unclickable</title>
	<atom:link href="http://zenverse.net/tag/unclickable/feed/" rel="self" type="application/rss+xml" />
	<link>http://zenverse.net</link>
	<description>Design and Web Development</description>
	<lastBuildDate>Sun, 13 May 2012 15:26:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How To Fix Unclickable Links When You Use PNG as Background Image in MSIE</title>
		<link>http://zenverse.net/how-to-fix-unclickable-links-when-you-use-png-as-background-image-in-internet-explorer/</link>
		<comments>http://zenverse.net/how-to-fix-unclickable-links-when-you-use-png-as-background-image-in-internet-explorer/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 03:41:17 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[Design Tips]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[msie]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[png24]]></category>
		<category><![CDATA[unclickable]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=403</guid>
		<description><![CDATA[You must have applied <em>filter:progid:DXImageTransform.Microsoft.AlphaImageLoader</em> to the css and found that the links became unclickable. In fact the solution was found...]]></description>
			<content:encoded><![CDATA[<p>You must have applied <em>filter:progid:DXImageTransform.Microsoft.AlphaImageLoader</em> to the css and found that the links became unclickable. In fact the solution was found by a great coder.</p>
<p>In case you can&#8217;t find <a rel="nofollow" target="_blank" href="http://www.twinhelix.com/css/iepngfix/demo/">the solution</a> using the correct keywords (through web search), here&#8217;s the rewritten guide from that website.</p>
<h3>The Guide</h3>
<h4>1. Loading an IE-Only CSS Stylesheet</h4>
<p>We need to load another stylesheet if the visitor is using Internet Explorer. In this example, I call it ie.css. Paste these codes before &lt;/head> tag.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p403code1'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4031"><td class="code" id="p403code1"><pre class="html" style="font-family:monospace;">&lt;!--[if IE]&gt;
&lt;link href=&quot;ie.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;![endif]--&gt;</pre></td></tr></table></div>

<h4>2. Tells MSIE to Load a Behaviour File</h4>
<p>Open up ie.css and paste the following codes into it.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p403code2'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4032"><td class="code" id="p403code2"><pre class="css" style="font-family:monospace;">img<span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.pngfix</span> <span style="color: #00AA00;">&#123;</span>
	behavior<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;iepngfix.htc&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>You can assign the behaviour to more elements by using comma. For example :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p403code3'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4033"><td class="code" id="p403code3"><pre class="css" style="font-family:monospace;">img<span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.pngfix</span><span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> p <span style="color: #00AA00;">&#123;</span>
	behavior<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;iepngfix.htc&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h4>3. Get the Behaviour File &#038; Blank.gif</h4>
<blockquote><h5>Download &#038; Save</h5>
<p><a target="_blank" rel="nofollow" href="http://www.twinhelix.com/css/iepngfix/demo/iepngfix.htc">The behaviour file</a> | <a target="_blank" href="http://www.twinhelix.com/css/iepngfix/demo/blank.gif">blank.gif</a></p></blockquote>
<p>Save them to your folder. If you want to put the blank.gif into another folder, make sure you edit the path in iepngfix.htc</p>
<h4>4. How to use it?</h4>
<p>Everything is kinda automatic now, depends on which element you assign the behaviour to. </p>
<p>An example based on the css above :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p403code4'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4034"><td class="code" id="p403code4"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;pngfix&quot; style=&quot;background-image:url(images/SEE_I_HAVE_PNG_AS_BACKGROUND.png);&quot;&gt;
..content..
&lt;/div&gt;</pre></td></tr></table></div>

<p>I assigned a class called &#8220;pngfix&#8221; to the div that has PNG image as background.</p>
<h4>5. Side Notes</h4>
<p>I placed blank.gif in a folder called &#8220;images&#8221; and of course I would have to edit the htc file. However, I used &#8220;images/blank.gif&#8221; instead of &#8220;/images/blank.gif&#8221; as suggested by the author because it doesn&#8217;t work (at least for me).</p>
<h4>6. I got an javascript alert &#8211; IEPNGFix: Children of positioned element are unclickable:&#8230;</h4>
<p>Most probably the element that uses PNG as background-image <strong>has its CSS position set</strong>. In my case, my div has position:relative and it throws this alert to me.</p>
<p>How do I fix it? I created another div inside the div with PNG image as background-image and apply position:relative to the inner div.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p403code5'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4035"><td class="code" id="p403code5"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;DIV_WITH_PNG_BACKGROUND&quot; class=&quot;pngfix&quot;&gt;
&lt;div class=&quot;the_fix&quot; style=&quot;position:relative;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;</pre></td></tr></table></div>

<p>To avoid the alert, you have to remove any CSS position if your div uses PNG image as background.<br />
Note that the position:relative was given to the inner div instead of the outer. </p>
<h3>The Great Coder</h3>
<p>All credits to <a rel="nofollow" target="_blank" href="http://www.twinhelix.com/css/iepngfix/demo/">Angus Turnbull</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/how-to-fix-unclickable-links-when-you-use-png-as-background-image-in-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

