<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Matt Sparks Blog</title>
	
	<link>http://blog.mattsparks.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Wed, 02 May 2012 00:39:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/mattsparksblog" /><feedburner:info uri="mattsparksblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>mattsparksblog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>placeMe.js – A Placeholder Polyfill</title>
		<link>http://feedproxy.google.com/~r/mattsparksblog/~3/hQNW9DSLeoc/</link>
		<comments>http://blog.mattsparks.com/html5/placeme-js-a-placeholder-polyfill/#comments</comments>
		<pubDate>Wed, 02 May 2012 00:22:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Polyfills]]></category>
		<category><![CDATA[placeholder]]></category>
		<category><![CDATA[polyfill]]></category>
		<category><![CDATA[polyfills]]></category>

		<guid isPermaLink="false">http://blog.mattsparks.com/?p=14</guid>
		<description><![CDATA[One of my favorite new attributes in the HTML5 Spec is the placeholder attribute. This new attribute allows us to easily add placeholder text to our input fields. When the input field is focused upon, the placeholder text is removed. This has been a standard feature on the web for quite sometime, usually being accomplished [...]]]></description>
			<content:encoded><![CDATA[<p>One of my favorite new attributes in the HTML5 Spec is the <a title="w3 Placeholder" href="http://www.w3.org/TR/html5/common-input-element-attributes.html#the-placeholder-attribute">placeholder attribute</a>. This new attribute allows us to easily add placeholder text to our input fields. When the input field is focused upon, the placeholder text is removed.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;input type=&quot;text&quot; placeholder=&quot;Please enter your name&quot;&gt;
</pre>
<p>This has been a standard feature on the web for quite sometime, usually being accomplished with JavaScript. With the introduction of the placeholder attribute, the browser takes care of the job for us.</p>
<p>Of course not every browser supports the placeholder attribute. While most <a title="placeholder browser support" href="http://caniuse.com/input-placeholder">modern browsers</a> do (Firefox 4+, Chrome 4+, Safari 4+, Opera 11.6+), Internet Explorer does not.</p>
<p>I wanted to use the placeholder attribute without fear so I wrote a little polyfill using jQuery. I&#8217;ve decided to call it placeMe.js and give it away to anyone who would like to use it and/or improve upon it.</p>
<h2>How to Use</h2>
<p><strong>First include jQuery</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p><strong>Next include placeMe.js</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;/path/to/placeMe-0.1.js&quot;&gt;&lt;/script&gt;
</pre>
<p><strong>Now use the placeholder attribute to your heart&#8217;s content</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;input type=&quot;text&quot; placeholder=&quot;This is my awesome placeholder&quot;&gt;
</pre>
<h2>Download</h2>
<div style="font-size: 18px;"><a title="placeMe.js Download" href="http://mattsparks.com/demos/placeMe/placeMe-0.1.zip">Download</a> | <a title="placeMe.js Demo" href="http://mattsparks.com/demos/placeMe/" target="_blank">Demo</a></div>
<p>&nbsp;</p>
<p>This is my first attempt at writing a polyfill, so be sure to let me know what you think in the comments.</p>
<img src="http://feeds.feedburner.com/~r/mattsparksblog/~4/hQNW9DSLeoc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.mattsparks.com/html5/placeme-js-a-placeholder-polyfill/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.mattsparks.com/html5/placeme-js-a-placeholder-polyfill/</feedburner:origLink></item>
		<item>
		<title>The Ultimate List of IE6 Fixes &amp; Hacks</title>
		<link>http://feedproxy.google.com/~r/mattsparksblog/~3/Gf2RvtcXHc4/</link>
		<comments>http://blog.mattsparks.com/css/the-ultimate-list-of-ie6-fixes-hacks/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 01:04:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://blog.mattsparks.com/?p=5</guid>
		<description><![CDATA[August 27, 2001. For web developers, that is a date that will live in infamy. On that unassuming August day, Internet Explorer 6 was officially released. No one could have foreseen the headaches IE6 would cause for developers. Who could have known that in late 2009 Internet Explorer 6 would still have 12.1% market share, [...]]]></description>
			<content:encoded><![CDATA[<p>August 27, 2001. For web developers, that is a date that will live in infamy. On that unassuming August day, Internet Explorer 6 was officially released. No one could have foreseen the headaches IE6 would cause for developers. Who could have known that in late 2009 Internet Explorer 6 would still have <a title="Yes... really." href="http://www.w3schools.com/browsers/browsers_explorer.asp" target="_blank">12.1%</a> market share, forcing us to make sure our sites play nice with it. There have been many attempts to bring down our foe (<a title="ie6 no more" href="http://www.ie6nomore.com/" target="_blank">here&#8217;s one</a>, <a title="Bring Down IE 6" href="http://www.bringdownie6.com/" target="_blank">here&#8217;s another</a>), but alas, IE6 won&#8217;t go down quietly.</p>
<p>IE6&#8242;s problems are well documented, but luckily for us a lot of smart people have found ways fix (or side step) those problems. Here is a huge list of hacks, fixes, and resources to make IE6 a little less painful.</p>
<h2>IE6 Box Model Bug</h2>
<p>More than likely if you&#8217;ve heard of only one IE6 bug, the <a title="Learn More about the box model bug in IE6" href="http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug" target="_blank">box model bug</a> is the one. In short, IE6 incorrectly calculates the width of a given box causing all sorts of layout problems. Here are some ways around this annoying bug.</p>
<ul>
<li><a title="Box Model Hack" href="http://tantek.com/CSS/Examples/boxmodelhack.html" target="_blank">Box Model Hack</a></li>
<li><a title="IE and the CSS Box Model" href="http://www.456bereastreet.com/archive/200612/internet_explorer_and_the_css_box_model/" target="_blank">Internet Explorer and the CSS Box Model</a></li>
<li><a title="About.com Box Model Hack" href="http://webdesign.about.com/od/css/a/aaboxmodelhack.htm" target="_blank">About.com Box Model Hack</a></li>
<li><a title="The IE Box Model and Doctype Modes" href="http://css.maxdesign.com.au/listamatic/about-boxmodel.htm" target="_blank">The IE Box Model and Doctype Modes</a></li>
</ul>
<p><span id="more-5"></span></p>
<h2>IE6 PNG Transparency Bug</h2>
<p>I touched on this briefly in my <a title="A Quick Guide to PNGs" href="http://relativelyfixed.com/2009/10/a-quick-guide-to-png/" target="_blank">Quick Guide to PNGs</a> post. There is a lack of support of the PNG alpha channel in IE6 causing transparent PNGs to render incorrectly. There&#8217;s a bunch of fixes for this using a lot of different techniques.</p>
<ul>
<li><a title="IE PNG Fix 2.0" href="http://www.twinhelix.com/css/iepngfix/" target="_blank">IE PNG Fix 2.0</a></li>
<li><a title="PNG Alpha Transparency with IE6" href="http://koivi.com/ie-png-transparency/" target="_blank">PNG Alpha Transparency with MSIE</a></li>
<li><a href="http://24ways.org/2007/supersleight-transparent-png-in-ie6" target="_blank">Transparent PNGs in Internet Explorer 6</a></li>
<li><a href="http://www.drunkenfist.com/304/2007/04/04/cross-browser-png-transparency-part-2/" target="_blank">Cross Browser PNG Transparency: Part 2</a></li>
<li><a href="http://dillerdesign.com/experiment/DD_belatedPNG/" target="_blank">DD_belatedPNG</a></li>
<li><a href="http://homepage.ntlworld.com/bobosola/" target="_blank">The PNG Problem in Windows IE</a></li>
<li><a href="http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html" target="_blank">PNG Behavior</a></li>
<li><a href="http://schoberg.net/2009/07/degradable-png-transparency-for-ie6/" target="_blank">Degradable PNG Transparency for IE6</a></li>
<li><a href="http://www.pluitsolutions.com/2008/04/11/solving-css-png-fix-background-none-call/" target="_blank">PNG Image Fix for IE</a></li>
</ul>
<h2>IE6 Min-Height/Min-Width Bug</h2>
<p>In another move that completely makes sense, IE6 ignores the min-height/min-width property. Don&#8217;t ask me why, I honestly haven&#8217;t a clue.</p>
<ul>
<li><a href="http://www.dustindiaz.com/min-height-fast-hack/" target="_blank">Min-Height Fast Hack</a></li>
<li><a href="http://perishablepress.com/press/2007/01/16/maximum-and-minimum-height-and-width-in-internet-explorer/" target="_blank">Maximum and Minimum Height/Width in IE</a></li>
<li><a href="http://www.cssplay.co.uk/boxes/minheight.html" target="_blank">Min-Height for IE</a></li>
</ul>
<h2>IE6 Double Margin Bug</h2>
<p>This bug does exactly what you think it does. IE6 doubles your margins on a floated element. So, for instance, if you want a 10px margin IE6 makes it a 20px. It makes perfect sense, huh? Here&#8217;s how to fix it.</p>
<ul>
<li><a href="http://davidwalsh.name/prevent-double-margin-padding-ie6-css-float" target="_blank">Prevent Double Margin in IE6</a></li>
<li><a href="http://www.cssnewbie.com/double-margin-float-bug/" target="_blank">Bug Fix: IE Double Margin Float Bug</a></li>
</ul>
<h2>IE6 No Hover State Bug</h2>
<p>IE6 only supports the hover pseudo-class on anchor (&lt;a&gt;) tags. Unlike modern browsers that support the hover pseudo class on any element. This bug especially becomes a problem when using lists (&lt;li&gt;) for navigation. Here&#8217;s a few work-a-rounds.</p>
<ul>
<li><a href="http://www.kavoir.com/2009/01/css-selectorhover-hack-for-ie6.html" target="_blank">CSS selector:hover Hack for IE6</a></li>
<li><a href="http://www.xs4all.nl/~peterned/csshover.html" target="_blank">Whatever:hover</a></li>
<li><a href="http://www.sidesofmarch.com/index.php/archive/2007/04/23/an-ie6-compatible-solution-for-hover/" target="_blank">An IE6 Compatible Solution for :hover</a></li>
</ul>
<h2>Other IE6 Bugs</h2>
<p>Here are some fixes for a few other IE6 bugs.</p>
<ul>
<li><a href="http://www.positioniseverything.net/explorer/italicbug-ie.html" target="_blank">IE6 Italics Bug</a></li>
<li><a href="http://css-tricks.com/prevent-menu-stepdown/" target="_blank">IE6 Step Down Bug </a></li>
<li><a href="http://www.positioniseverything.net/explorer/border-chaos.html" target="_blank">IE6 Border Bug</a></li>
</ul>
<h2>General IE6 Hacks, Fixes, &amp; Resoucres</h2>
<ul>
<li><a href="http://css-tricks.com/ie-css-bugs-thatll-get-you-every-time/" target="_blank">IE CSS Bugs That Will Get You Every Time</a></li>
<li><a href="http://www.positioniseverything.net/explorer.html" target="_blank">Explorer Exposed!</a></li>
<li><a href="http://www.virtuosimedia.com/tutorials/ultimate-ie6-cheatsheet-how-to-fix-25-internet-explorer-6-bugs" target="_blank">Ultimate IE6 Cheat Sheet</a></li>
<li><a href="http://www.sitepoint.com/blogs/2009/03/06/10-fixes-for-ie6-problems/" target="_blank">10 Fixes That Solve IE6 Problems</a></li>
<li><a href="http://www.gtalbot.org/BrowserBugsSection/MSIE6Bugs/" target="_blank">119 Bugs in IE6 For Windows</a></li>
</ul>
<h2>Conclusion</h2>
<p>I hope this list helps you. Almost every single fix/hack I&#8217;ve listed has come in handy to me at some point. Please let me know if I&#8217;ve forgotten anything or left something out. I can&#8217;t say thanks enough to all the people who have taken time to develop solutions all of us can use.</p>
<img src="http://feeds.feedburner.com/~r/mattsparksblog/~4/Gf2RvtcXHc4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.mattsparks.com/css/the-ultimate-list-of-ie6-fixes-hacks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.mattsparks.com/css/the-ultimate-list-of-ie6-fixes-hacks/</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching using disk: basic
Object Caching 447/481 objects using disk: basic

Served from: blog.mattsparks.com @ 2012-05-02 06:07:20 -->

