<?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>Blog and Web Design Portfolio of Adrian Pelletier &#187; Code</title>
	<atom:link href="http://www.adrianpelletier.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adrianpelletier.com</link>
	<description></description>
	<lastBuildDate>Thu, 15 Dec 2011 23:30:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Create a Realistic Hover Effect With jQuery</title>
		<link>http://www.adrianpelletier.com/2009/05/31/create-a-realistic-hover-effect-with-jquery-ui/</link>
		<comments>http://www.adrianpelletier.com/2009/05/31/create-a-realistic-hover-effect-with-jquery-ui/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 00:40:32 +0000</pubDate>
		<dc:creator>Adrian</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.adrianpelletier.com/?p=1047</guid>
		<description><![CDATA[For one of the projects I&#8217;m currently working on with Rareview, we wanted to add a rising hover effect to a set of icon links. Using jQuery&#8217;s animate effect, I ...]]></description>
			<content:encoded><![CDATA[<p><span class="drop_cap">F</span>or one of the projects I&#8217;m currently working on with <a title="Visit Rareview's website" href="http://www.rareview.com/" target="_blank">Rareview</a>, we wanted to add a rising hover effect to a set of icon links. Using <a href="http://jquery.com/" target="_blank">jQuery&#8217;s</a> animate effect, I experimented with icons that have reflections and others with shadows. Here is a demo with two examples:</p>
<p><a class="img-link" title="View the Demo" href="http://adrianpelletier.com/sandbox/jquery_hover_nav/"><img class="alignnone size-full wp-image-1108" src="http://www.adrianpelletier.com/wp-content/uploads/2009/05/jquery-rising-hover-3.jpg" alt="jquery-rising-hover-2" width="438" height="150" /></a></p>
<p>The HTML and CSS are both straightforward and have a structure and style common to many web navigations and menus (for the sake of post length, I&#8217;m not including HTML/CSS code examples here but you are free to snoop around in the demo or view the files in the download below).</p>
<p>In a nutshell, the JS appends the reflection/shadow to each <code>&lt;li&gt;</code>, then animates the position and opacity of these elements and the icon links on hover. I&#8217;ve added <code>.stop()</code> to eliminate any queue buildup from quickly mousing back and forth over the navigation.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Begin jQuery</span>
&nbsp;
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">/* =Reflection Nav
-------------------------------------------------------------------------- */</span>	
&nbsp;
    <span style="color: #006600; font-style: italic;">// Append span to each LI to add reflection</span>
&nbsp;
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nav-reflection li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
    <span style="color: #006600; font-style: italic;">// Animate buttons, move reflection and fade</span>
&nbsp;
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nav-reflection a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> marginTop<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;-10px&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;span&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> marginTop<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;18px&quot;</span><span style="color: #339933;">,</span> opacity<span style="color: #339933;">:</span> <span style="color: #CC0000;">0.25</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> marginTop<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;0px&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;span&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> marginTop<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;1px&quot;</span><span style="color: #339933;">,</span> opacity<span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">/* =Shadow Nav
-------------------------------------------------------------------------- */</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// Append shadow image to each LI</span>
&nbsp;
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nav-shadow li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;img class=&quot;shadow&quot; src=&quot;images/icons-shadow.jpg&quot; alt=&quot;&quot; width=&quot;81&quot; height=&quot;27&quot; /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// Animate buttons, shrink and fade shadow</span>
&nbsp;
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nav-shadow li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    	<span style="color: #003366; font-weight: bold;">var</span> e <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> marginTop<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;-14px&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">250</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        	$<span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> marginTop<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;-10px&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">250</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;img.shadow&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> width<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;80%&quot;</span><span style="color: #339933;">,</span> height<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;20px&quot;</span><span style="color: #339933;">,</span> marginLeft<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;8px&quot;</span><span style="color: #339933;">,</span> opacity<span style="color: #339933;">:</span> <span style="color: #CC0000;">0.25</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">250</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    	<span style="color: #003366; font-weight: bold;">var</span> e <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> marginTop<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;4px&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">250</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        	$<span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> marginTop<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;0px&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">250</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;img.shadow&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> width<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;100%&quot;</span><span style="color: #339933;">,</span> height<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;27px&quot;</span><span style="color: #339933;">,</span> marginLeft<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;0px&quot;</span><span style="color: #339933;">,</span> opacity<span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">250</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// End jQuery</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Please note, for the purposes of this quick demo, I did not bother including support for IE6.</p>
<p><a class="grey_button" title="Check out the demo" href="http://adrianpelletier.com/sandbox/jquery_hover_nav/">View Demo</a> <em> or </em> <a class="grey_button" title="Download the demo" href="http://adrianpelletier.com/sandbox/jquery_hover_nav/demo.zip">Download</a></p>
<p><strong>Update 06/01/2009:</strong> I updated the shadow example so that it has more of a bounce to it.</p>
<p><strong>Update 07/08/2009:</strong> As <a href="http://www.adrianpelletier.com/2009/05/31/create-a-realistic-hover-effect-with-jquery-ui/comment-page-1/#comment-3367">Cody Lindley</a> points out in the comments (thanks!), this example does not require the UI and could work with jQuery alone (I&#8217;ve updated the link in the post). However, this being a navigation example, I&#8217;ll leave the UI script in the demo and download for users who want to experiment with <a href="http://jqueryui.com/demos/animate/" target="_blank">animating text, background, borders, or outline colors</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adrianpelletier.com/2009/05/31/create-a-realistic-hover-effect-with-jquery-ui/feed/</wfw:commentRss>
		<slash:comments>193</slash:comments>
		</item>
		<item>
		<title>How I Chose to Say Farewell to IE6</title>
		<link>http://www.adrianpelletier.com/2009/02/16/how-i-chose-to-say-farewell-to-ie6/</link>
		<comments>http://www.adrianpelletier.com/2009/02/16/how-i-chose-to-say-farewell-to-ie6/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 16:09:48 +0000</pubDate>
		<dc:creator>Adrian</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://adrianpelletier.com/?p=741</guid>
		<description><![CDATA[The web community has been abuzz lately with talk about dropping support for IE6 and rightfully so! I couldn&#8217;t agree more for most sites, though I&#8217;m sure there will be ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-767" title="attention_ie6" src="http://adrianpelletier.com/wp-content/uploads/2009/02/attention_ie6.jpg" alt="attention_ie6" width="438" height="150" /></p>
<p><span class="drop_cap">T</span>he web community has been abuzz lately with talk about dropping support for IE6 and rightfully so! I couldn&#8217;t agree more for <em>most</em> sites, though I&#8217;m sure there will be the occasional client who either requests IE6 to be included in testing or it turns out their audience actually does use IE6 according to the site&#8217;s stats. Nonetheless, the majority of mordern websites could certainly do without supporting IE6. I would guess somewhere between 30% of my development time is spent fixing the crippled browser, if not more, and I&#8217;m looking forward to an enormous decrease in frustrations! It was always a frightful thing to fire up Windows and find out what horrors IE had done to a perfectly good site. I don&#8217;t blame the browser either; the problem was for too long (way too long) IE6 still had a large user group. Thankfully, those numbers are continually decreasing and I&#8217;ve decided this is the year I&#8217;ll be dropping support for IE6. If a future client requests the browser to be supported, that&#8217;s fine, but it will come at additional costs for the extra development and testing time.</p>
<p>As for how I&#8217;m going to ignore the outdated browser, I wanted to notify IE6 users of the issue rather than assume they already knew they were using an outdated browser. My solution was to create a warning message that gets inserted after the opening <code>&lt;body&gt;</code> tag via Javascript. Conditional comments ensure this message (as well as the HTML code within the body) will only appear for IE6 or previous versions. The message is styled in a very Microsoft-esque way so even the hardest-core IE6 user will be able to recognize it. <img src='http://www.adrianpelletier.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Where does the link point to? <a title="Get a better browser!" href="http://www.mozilla.com/firefox/" target="_blank">Firefox</a>, of course.</p>
<p>This site is currently using what I&#8217;ve dubbed the &#8220;Attention IE6&#8243; script so go ahead and open IE6, then visit <a href="http://www.adrianpelletier.com">www.adrianpelletier.com</a>. I&#8217;ve configured the script to work in conjunction with <a title="Visit jQuery" href="http://jquery.com/" target="_blank">jQuery</a> because that is the framework I was already using but I&#8217;m sure you could easily adapt it to fit your own needs. I&#8217;m posting a download link for anyone who cares to use this approach on their own website. The setup is very simple, just include the following conditional comment in the <code>&lt;head&gt;</code> of your document.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;!--<span style="color: #00AA00;">&#91;</span>if lte IE <span style="color: #cc66cc;">6</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&gt;</span>
    &lt;link rel<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;css/ie6.css&quot;</span> media<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;screen&quot;</span> /<span style="color: #00AA00;">&gt;</span>
    &lt;script type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> src<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;js/jquery.min.js&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;/script<span style="color: #00AA00;">&gt;</span>
    &lt;script type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> src<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;js/attention_ie6.js&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;/script<span style="color: #00AA00;">&gt;</span>
&lt;!<span style="color: #00AA00;">&#91;</span>endif<span style="color: #00AA00;">&#93;</span>--<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<p>Next, download the following files and place in the appropriate Javascript, CSS, and images directories:</p>
<p><a class="grey_button" title="Download the required JS and CSS files" href="http://adrianpelletier.com/sandbox/attention_ie6/attention_ie6.zip">Download</a></p>
<p>And so, farewell to IE6. I cannot say that I will miss you.</p>
<p><strong>Update 05/31/2009:</strong> I want to emphasize that this experiment is not a fix-it-all solution by any means. As stated above, a large majority of modern websites would have no problems dropping support IE6. For example, this site currently receives around 3% of users on IE6 and that number continues to drop. That&#8217;s not a large enough audience to worry about, in my opinion. There are, however, still specific scenario&#8217;s where IE6 maintains a much higher user percentage (i.e. corporate businesses that place restrictions on browser updates). In those cases, I do believe IE6 should be included in development testing.</p>
<p>I also do not advocate blocking or punishing IE6 users. My intentions with the above approach were to 1) inform the user that they are using outdated technology and 2) warn that the site may look as it should. However, I have not restricted the user&#8217;s access to the site&#8217;s content and would never recommend doing so.</p>
<p>I don&#8217;t consider this article to be the final answer, not by a long shot. However, I would hope that ideas such as these will at least strike up conversations and thoughts about advancing web development and what the next step should be. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.adrianpelletier.com/2009/02/16/how-i-chose-to-say-farewell-to-ie6/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Decoy Fix for IE Duplicate Characters Bug</title>
		<link>http://www.adrianpelletier.com/2007/11/25/decoy-fix-for-ie-duplicate-characters-bug/</link>
		<comments>http://www.adrianpelletier.com/2007/11/25/decoy-fix-for-ie-duplicate-characters-bug/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 06:05:21 +0000</pubDate>
		<dc:creator>Adrian</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://s37188.gridserver.com/blog/?p=149</guid>
		<description><![CDATA[Among the countless IE annoyances, the duplicate character bug is one I&#8217;ve ran into more than once. Position Is Everything has a thorough write-up on the puzzling behavior, which seems ...]]></description>
			<content:encoded><![CDATA[<p><span class="drop_cap">A</span>mong the countless IE annoyances, the duplicate character bug is one I&#8217;ve ran into more than once. <a href="http://www.positioniseverything.net/">Position Is Everything</a> has a <a href="http://www.positioniseverything.net/explorer/dup-characters.html">thorough write-up</a> on the puzzling behavior, which seems to be triggered by HTML comments between floats and sometimes hidden elements. There are a couple different workarounds such as a -3px margin on the last float or using conditional comments in place of regular HTML comments. A colleague and I have found another way to fix this issue which has worked on every case so far and is a slightly easier/cleaner option.</p>
<p>If you place an empty element (it can be a p, span, div, anything) directly after the element which is duplicating characters and set the display to none in the CSS, the problem will disappear. What happens is because the last element within the floats is being hidden, there are no characters for IE to duplicate. For future maintenance, I&#8217;ve added a comment within the HTML (as shown in example) so that I&#8217;ll know why that extra element is there. I would never recommend placing unused elements within your HTML as it isn&#8217;t semantically correct but if you&#8217;re looking for a quick fix, this will do the trick.</p>
<p>HTML:<br />
<code> </code></p>
<pre>   ...
   &lt;div id="footer"&gt;
      &lt;p&gt;This element was duplicating characters.&lt;/p&gt;
      &lt;span class="ie_fix"&gt;&lt;!-- do not delete this,
      it fixes the IE duplicate characters --&gt;&lt;/span&gt;
   &lt;/div&gt;&lt;!-- end footer --&gt;
&lt;/div&gt;&lt;!-- end wrapper --&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>CSS:<br />
<code> </code></p>
<pre>.ie_fix {
   display: none;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.adrianpelletier.com/2007/11/25/decoy-fix-for-ie-duplicate-characters-bug/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

