<?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>Russell Heimlich &#187; CSS/HTML</title>
	<atom:link href="http://www.russellheimlich.com/blog/tags/csshtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.russellheimlich.com/blog</link>
	<description>The Blog of Russell Heimlich</description>
	<lastBuildDate>Thu, 01 Jul 2010 17:13:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>5 Links Of Interestingness</title>
		<link>http://www.russellheimlich.com/blog/5-links-of-interestingness/</link>
		<comments>http://www.russellheimlich.com/blog/5-links-of-interestingness/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 02:04:37 +0000</pubDate>
		<dc:creator>Russell Heimlich</dc:creator>
				<category><![CDATA[CSS/HTML]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[WTF]]></category>

		<guid isPermaLink="false">http://www.russellheimlich.com/blog/?p=2211</guid>
		<description><![CDATA[http://0to255.com/ &#8211; &#8220;0to255 cures your color manipulation woes. Simply pick the color that you want to start with and 0to255 gives you a range of colors from black to white using an interval optimized for web design. Then, just click the variation you want to use and the hex code is automatically copied to your [...]<p><a href="http://www.russellheimlich.com/blog/5-links-of-interestingness/">5 Links Of Interestingness</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://0to255.com/"><img class="alignnone size-full wp-image-2212" title="0to255.com screenshot" src="http://www.russellheimlich.com/blog/wp-content/uploads/2010/04/0to255.com-screenshot.png" alt="" width="500" height="283" /></a></p>
<p><a href="http://0to255.com/">http://0to255.com/</a> &#8211; &#8220;0to255 cures your color manipulation woes. Simply pick the color that you want to start with and 0to255 gives  you a range of colors from black to white       using an interval optimized for web design. Then, just click the  variation you want to use and the hex       code is automatically copied to your clipboard.&#8221; My favorite part is that it uses a RESTful API so you can do things like <a href="http://0to255.com/0099ff">http://0to255.com/0099ff</a> You know I just love things that you can <a href="http://dummyimage.com/640x480/0099ff/fff/&amp;text=RESTful+APIs+rock!">manipulate with a url</a>.</p>
<p><a href="http://www.cssdesk.com"><img class="alignnone size-full wp-image-2217" title="cssdesk.com screenshot" src="http://www.russellheimlich.com/blog/wp-content/uploads/2010/04/cssdesk.com-screenshot.png" alt="" width="600" height="268" /></a></p>
<p><a href="http://cssdesk.com/">http://cssdesk.com/</a> &#8211; A tool for quickly mocking up snippets of HTML/CSS. I would prefer to just create a new HTML file in Dreamweaver and play with it using Firebug, but this could work too. I found the cursor in the HTML/CSS box to be a little off when hitting return. CSSdesk has a nice interface which is almost like a desktop application. And since you can download it and run it locally, I guess it qualifies as a genuine application.</p>
<p><a href="http://www.boston.com/bostonglobe/ideas/articles/2010/04/11/please_do_not_change_your_password/"><img class="alignnone size-full wp-image-2216" title="Post-it with Crossed-off Passwords" src="http://www.russellheimlich.com/blog/wp-content/uploads/2010/04/post-it-with-crossed-off-passwords.jpg" alt="" width="189" height="196" /></a><br />
<a href="http://www.boston.com/bostonglobe/ideas/articles/2010/04/11/please_do_not_change_your_password/">Please Do Not Change Your Password</a> &#8211; Alot of security&#8217;s best practices cause more problems than they solve. &#8220;At countless conferences and seminars, experts have consistently called  for more education and outreach as the answer to user apathy or  ignorance. But the research of Herley and others is causing many to  realize most of the blame for noncompliance rests not with users, but  with the experts themselves — the pros aren’t able to make a strong case  for all their recommendations.&#8221;</p>
<p><a href="http://www.smashingmagazine.com/2010/04/10/holistic-web-browsing-4-trends-of-the-future/"><img class="alignnone size-full wp-image-2220" title="Holistic Web Browsing" src="http://www.russellheimlich.com/blog/wp-content/uploads/2010/04/holistic-web-browsing.jpg" alt="" width="500" height="300" /></a></p>
<p><a href="http://www.smashingmagazine.com/2010/04/10/holistic-web-browsing-4-trends-of-the-future/">Holistic  Web Browsing: Trends Of The Future</a> &#8211; &#8220;The future of the Web is not at your desk. It’s not necessarily in your  pocket, either. It’s <em>everywhere</em>.&#8221; How do we design for a Web that was only intended to be used in a single context?</p>
<p><a href="http://www.amazon.com/gp/product/B00005Q2ZU?ie=UTF8&amp;tag=thebloofrushe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B00005Q2ZU"><img class="alignnone size-full wp-image-2219" title="Hard Ticket to Hawaii" src="http://www.russellheimlich.com/blog/wp-content/uploads/2010/04/hard-ticket-to-hawaii.jpg" alt="" width="360" height="500" /></a></p>
<p><a href="http://www.youtube.com/watch?v=GtQEbFcLHOU">WTF? (Video)</a> &#8211; &#8220;This clip comes from <a href="http://www.amazon.com/gp/product/B00005Q2ZU?ie=UTF8&amp;tag=thebloofrushe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B00005Q2ZU">Hard Ticket to Hawaii</a>, possibly the worst  1980’s movie made (though to be fair, it’s tagline of Bombs, Babes, and  Beaches is quite… radical).&#8221; At first I thought the acting was WTF, then I saw the ending.</p>
<p><a href="http://twitter.com/chrisrowe/status/11710020273"><img src="http://www.russellheimlich.com/blog/wp-content/uploads/2010/04/seo-and-lightbulbs.png" alt="" title="SEO and Lightbulbs" width="600" height="327" class="alignnone size-full wp-image-2224" /></a></p>
<blockquote><p>&#8220;How many SEO copywriters does it take to change a  lightbulb, light bulb, light, bulb, lamp, bulbs, flowers, flour&#8230;?&#8221;<cite> — <a href="http://twitter.com/chrisrowe/status/11710020273">Chris Rowe</a></cite></p></blockquote>
<p><a href="http://www.russellheimlich.com/blog/5-links-of-interestingness/">5 Links Of Interestingness</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.russellheimlich.com/blog/5-links-of-interestingness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Put Your Print Stylesheet At The Bottom</title>
		<link>http://www.russellheimlich.com/blog/put-your-print-stylesheet-at-the-bottom/</link>
		<comments>http://www.russellheimlich.com/blog/put-your-print-stylesheet-at-the-bottom/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 03:25:38 +0000</pubDate>
		<dc:creator>Russell Heimlich</dc:creator>
				<category><![CDATA[CSS/HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[FAIL]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[stylesheet]]></category>

		<guid isPermaLink="false">http://www.russellheimlich.com/blog/?p=2152</guid>
		<description><![CDATA[I woke up this morning with a profound realization. &#8220;Why not put print stylesheets at the bottom of the page so they load last?&#8221;, I thought to myself. It makes perfect sense to any performance-conscious web developer who savors every last millisecond of performance gained. Your print styles aren&#8217;t needed until you print the page, [...]<p><a href="http://www.russellheimlich.com/blog/put-your-print-stylesheet-at-the-bottom/">Put Your Print Stylesheet At The Bottom</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I woke up this morning with a profound realization. &#8220;Why not put print stylesheets at the bottom of the page so they load last?&#8221;, I thought to myself. It makes perfect sense to any performance-conscious web developer who savors every last millisecond of performance gained. Your print styles aren&#8217;t needed until you print the page, so it is okay if it takes a little while longer to download.  Unfortunately the quirkiness of the browser makers trumps our otherwise sound logic.</p>
<p>According to <a href="http://www.stevesouders.com/blog/2010/02/11/mediaprint-stylesheets/">tests done</a> by Steve Souders, web performance guru extraordinaire, Internet Explorer blocks the rendering of content until all of the stylesheets have been downloaded regardless of their media type. And since Internet Explorer is the dominant browser by visitors to most mainstream sites, there is absolutely no benefit to including the print stylesheet at the bottom of the page.</p>
<p>A possible workaround would be to dynamically insert the print stylesheet (using JavaScript) into the web page after it has finished loading. This just feels icky to me as the poor sap who is most likely to print out the webpage I so meticulously coded is also the poor sap using Internet Explorer 5.5 with JavaScript turned off and <a href="http://en.wikipedia.org/wiki/BonziBUDDY">BonziBUDDY</a> turned on.</p>
<p><img class="alignnone size-full wp-image-2153" title="Captain Kirk Facepalm Fail ascii Printout" src="http://www.russellheimlich.com/blog/wp-content/uploads/2010/03/captain-kirk-facepalm-fail-ascii.jpg" alt="" width="600" height="892" /></p>
<p><a href="http://www.russellheimlich.com/blog/put-your-print-stylesheet-at-the-bottom/">Put Your Print Stylesheet At The Bottom</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.russellheimlich.com/blog/put-your-print-stylesheet-at-the-bottom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Death To The Div</title>
		<link>http://www.russellheimlich.com/blog/death-to-the-div/</link>
		<comments>http://www.russellheimlich.com/blog/death-to-the-div/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 00:32:27 +0000</pubDate>
		<dc:creator>Russell Heimlich</dc:creator>
				<category><![CDATA[CSS/HTML]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[booger test]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[elements]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[John Allsopp]]></category>
		<category><![CDATA[markup]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[W3C]]></category>

		<guid isPermaLink="false">http://www.russellheimlich.com/blog/?p=1802</guid>
		<description><![CDATA[Every web developer is looking forward to the new HTML spec, HTML 5. The new spec will birth 20 new elements to add more underlying semantic meaning to content. The new elements came out of popular IDs and Class attributes for common situations in web design: &#60;nav&#62; is just like &#60;div id=&#8221;nav&#8221;&#62;. But these new [...]<p><a href="http://www.russellheimlich.com/blog/death-to-the-div/">Death To The Div</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Every web developer is looking forward to the new HTML spec, HTML 5. The new spec will birth <a href="http://www.w3.org/TR/html5-diff/#new-elements">20 new elements</a> to add more underlying semantic meaning to content. The new elements came out of popular IDs and Class attributes for common situations in web design: &lt;nav&gt; is just like &lt;div id=&#8221;nav&#8221;&gt;. But these new elements are just a stop gap.</p>
<p><img src="http://www.russellheimlich.com/blog/wp-content/uploads/2009/09/death-to-div.jpg" alt="Death to the Div Tag" title="Death to the Div Tag" width="600" height="361" class="alignnone size-full wp-image-1816" /></p>
<p>I wish the web community could move beyond pigeon-holing ourselves with specific elements. Why can&#8217;t we make our own elements to better describe our content? If I had my way &lt;div&gt;s would be ancient history and any element <a href="http://simon.html5.org/html5-elements">not already defined in the HTML spec</a> would be treated by browsers like a &lt;div&gt;. </p>
<p>There are many benefits to opening up the element nomenclature like this. </p>
<p><strong>1) It will be much easier to describe content.</strong> No longer will we need to shoehorn our content into quasi-relevant elements. Did you know the &lt;address&gt; tag is to define the contact information for the author or owner of a document and not to hold a plain street address? </p>
<p><strong>2) No more div-itis.</strong> Web developers will no longer have to wade through a dozen &lt;/div&gt; tags. &lt;div&gt; tags are the least-semantic structural elements in a web designers toolbox; it literally means &#8216;division&#8217; of a page and is used to mark off different sections within a document. Things can get pretty messy when using too many &lt;div&gt;s however as it is hard to tell where they end. Take a look at this code example:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;container&quot;&gt;
   &lt;div id=&quot;article&quot;&gt;
      ...
     &lt;div id=&quot;chart&quot;&gt;
      ...
     &lt;/div&gt;
   &lt;/div&gt;
&lt;/div&gt;</pre></div></div>

<p>Look how much better this markup looks from both a readability and maintainability perspective:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;container&gt;
   &lt;article&gt;
      ...
     &lt;chart&gt;
      ...
     &lt;/chart&gt;
   &lt;/article&gt;
&lt;/container&gt;</pre></div></div>

<p>A benefit to free-form elements is the semantic closing tags making it clear where each element begins <em>and</em> ends.</p>
<p><strong>3) <a href="http://www.google.com/search?q=define%3A+microformats">Microformats</a> might actually work.</strong> The movement to create semantic markup using loosely agreed upon Classes slowly died off due to the extra bloat it introduced to the underlying code. With the ability to create your own tags, Microformats could flourish and we can begin to set-up our own best practices for describing content.</p>
<p><strong>4) Faster JavaScript.</strong> Not many browsers support the JavaScript method <a href="http://www.quirksmode.org/dom/w3c_core.html#t11">getElementsByClassName</a> but every browser supports <a href="http://www.quirksmode.org/dom/w3c_core.html#t12">getElementsByTagName</a>. Because of this many libraries have had to write their own implementations which are many times slower than native methods. Faster <abbr title="Document Object Model">DOM</abbr> traversal = faster JavaScript!</p>
<h4>What will it take to make this a reality? Boogers</h4>
<p>We&#8217;re already going to have issues with older browsers supporting brand new elements with HTML 5. We might as well go all the way and make sure every browser can support whatever element we can come up with. After all we only have <a href="http://www.zeldman.com/2009/07/13/html-5-nav-ambiguity-resolved/#comment-44699">one shot to get HTML right for this generation</a> according to John Allsopp. </p>
<p>Many browsers already support free-form elements both with CSS and JavaScript. To really flesh this out I created the <a href="http://www.russellheimlich.com/booger-test.htm">Booger Test</a> and below are my findings.</p>
<ul>
<li>Firefox 3+ supports the &lt;booger&gt; tag as if it were a native element but has to be explicitly set to <em>display:block</em>. </li>
<li>Firefox 2 has no problem with CSS unless there children elements in which case the  &lt;booger&gt; tag collapses. Weird!</li>
<li>All versions of Internet Explorer don&#8217;t know what to do with the  &lt;booger&gt; tag but they do function normally when using a <a href="http://ejohn.org/blog/html5-shiv/">JavaScript shiv</a></li>
<li>Safari and Chrome have no problems.</li>
<li>Every browser I tested passed the JavaScript portions (getElementsByTagName(&#8220;booger&#8221;)) of the booger test with flying colors!</li>
</ul>
<p>So as you can see, we are really close to being able to use our own elements. HTML 5 is already going in this direction but it would be a real shame if everyone got hung up on what frivolous new element names we should all agree to use instead of coming up with new functionality to move the capabilities of the web forward.</p>
<p><a href="http://www.russellheimlich.com/blog/death-to-the-div/">Death To The Div</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.russellheimlich.com/blog/death-to-the-div/feed/</wfw:commentRss>
		<slash:comments>52</slash:comments>
		</item>
		<item>
		<title>Developers: Stop Whining About IE6</title>
		<link>http://www.russellheimlich.com/blog/developers-stop-whining-about-ie6/</link>
		<comments>http://www.russellheimlich.com/blog/developers-stop-whining-about-ie6/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 03:43:03 +0000</pubDate>
		<dc:creator>Russell Heimlich</dc:creator>
				<category><![CDATA[CSS/HTML]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[developing]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[web browser]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[whining]]></category>

		<guid isPermaLink="false">http://www.russellheimlich.com/blog/?p=1763</guid>
		<description><![CDATA[I&#8217;m sick of the developer community whining and moaning about IE6. It&#8217;s amazing how many different campaigns have been created in an attempt to get people to upgrade. From the simple brochure sites like stopie6.com to the unethical IE6 update script which tricks a user into thinking an IE upgrade is a critical update. There [...]<p><a href="http://www.russellheimlich.com/blog/developers-stop-whining-about-ie6/">Developers: Stop Whining About IE6</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.russellheimlich.com/blog/wp-content/uploads/2009/08/i-want-you-to-stop-whining.jpg" alt="I WANT YOU TO STOP WHINING" title="I WANT YOU TO STOP WHINING" width="374" height="500" class="alignnone size-full wp-image-1772" /></p>
<p>I&#8217;m sick of the developer community whining and moaning about IE6. It&#8217;s amazing how many different campaigns have been created in an attempt to get people to upgrade. From the simple brochure sites like <a href="http://www.stopie6.com/">stopie6.com</a> to the unethical <a href="http://ie6update.com/">IE6 update script</a> which tricks a user into thinking an IE upgrade is a critical update. There was even a <a href="http://www.cnn.com/2009/TECH/08/06/internet.explorer.six/">CNN story about the anti-IE campaign</a> on the front page (which I think they ran mostly because they stood to benefit from people upgrading). And lets not forget the jovial tweets when news broke that <a href="http://www.techcrunch.com/2009/07/14/youtube-will-be-next-to-kiss-ie6-support-goodbye/">YouTube would be dropping support for IE6</a>.</p>
<p>The only major site that has a valid plan for leaving IE6 behind is Digg.com which was <a href="http://blog.digg.com/?p=878">a business decision</a>. According to their stats, IE6 accounts for 10% of visits and 5% of all pageviews. The biggest IE6 headaches for Digg is supporting the functionality to digg a story, bury a story, or leave a comment. IE6 only accounts for a mere 1% of these actions which Digg can&#8217;t justify the extra development time needed to support them for such a small group of users. They even conducted a survey to find out why people don&#8217;t upgrade their browsers with a majority of the respondents stating they aren&#8217;t allowed or they don&#8217;t have the proper rights to install new software on their computers. </p>
<p><a href="http://blog.digg.com/?p=878"><img src="http://www.russellheimlich.com/blog/wp-content/uploads/2009/08/digg-ie6-survey.jpg" alt="Digg IE6 Survey chart" title="Digg IE6 Survey chart" width="512" height="175" class="alignnone size-full wp-image-1771" /></a></p>
<p>All of this hoopla so the lives of developers are easier. After all it is the job of developers to build a site and make sure it works across a variety of operating systems, browsers, and devices in order to serve its audience. Martin Ringlein put it best in his post <a href="http://marylandmedia.com/2008/11/stop-being-a-dick-support-ie6/">Stop being a dick, support IE6</a>, &#8220;We are in the business of creating usable, accessible and intuitive experiences for our users; we are not in the business of changing users, user agents and user behavior all in a pursuit for what we’ve deemed a &#8216;better&#8217; web.&#8221; </p>
<p>I became a developer because I enjoyed solving problems. Internet Explorer is just another obstacle to get over when solving a problem. Rather than wasting energy on things I couldn&#8217;t control like trying to persuade the public to upgrade, I dove into learning how to get past the quirks of IE. Here are my 5 tips:</p>
<ol>
<li><strong>Start with a reset stylesheet</strong> &#8211; This removes any default styles set by the browser so you can start styling on a consistent base. I prefer <a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">Eric Myer&#8217;s CSS Reset Reloaded</a> , but there are <a href="http://perishablepress.com/press/2007/10/23/a-killer-collection-of-global-css-reset-styles/">many to choose from</a>.</li>
<li><strong>Use a strict HTML doctype</strong> &#8211; <a href="http://www.alistapart.com/articles/doctype/">Doctypes</a> tell the browser how to interpret the HTML and transitional and loose doctypes introduce rendering quirks known as triggering &#8220;<a href="http://www.quirksmode.org/css/quirksmode.html">quirksmode</a>&#8220;. Any <a href="http://www.456bereastreet.com/archive/200904/using_an_xml_declaration_triggers_quirks_mode_in_ie_6/">XML doctype</a> (including XHTML flavors) triggers quirks mode in IE as well. </li>
<li><strong>Don&#8217;t be afraid of <a href="http://www.456bereastreet.com/archive/200411/the_underscore_hack/">CSS conditional hacks</a></strong> &#8211; Did you know you can send IE a different property by putting an underscore in front of it? It works like this:

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.style</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span><span style="color: #00AA00;">;</span> //Caught by every browser
_margin-<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> //Caught by IE <span style="color: #cc66cc;">6</span> &amp; <span style="color: #cc66cc;">7</span>
<span style="color: #6666ff;">.margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span> //Only caught by IE6
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>You can also use <a href="http://www.quirksmode.org/css/condcom.html">conditional stylesheets</a> to serve different stylesheets but that becomes difficult to maintain.
</li>
<li><strong>Learn to love the <a href="http://www.belafontecode.com/create-transparent-pngs-in-ie6-using-alphaimageloader-no-hacks/">AlphaImageLoader filter</a> for transparent PNGs</strong> &#8211; There is no way around it.</li>
<li><strong>Learn to clear floats the simple way</strong> &#8211; Just set the <a href="http://www.quirksmode.org/css/clearing.html">&#8220;overflow&#8221; property of the container to auto or hidden</a> and set the width or height to something other than auto. This applies to all browsers not just IE. I hate seeing the overly complicated <a href="http://www.positioniseverything.net/easyclearing.html">clearfix solution</a>.</li>
</ol>
<p>Other tips for taming IE quirks:</p>
<ul>
<li><a href="http://sixrevisions.com/web-development/definitive-guide-to-taming-the-ie6-beast/">Definitive Guide to Taming the IE6 Beast</a> &#8211; SixRevisions.com</li>
<li><a href="http://www.sitepoint.com/blogs/2009/03/06/10-fixes-for-ie6-problems/">10 Fixes for IE6 Problems</a> &#8211; Sitepoint.com</li>
</ul>
<p>So if studying up on these workarounds and techniques sound like too much work, then maybe you shouldn&#8217;t be a developer. Perhaps a professional lobbyist is right up your alley. They&#8217;re pretty good at ignoring the details of reality. </p>
<p>Here&#8217;s a list of some of the more prominent anti-IE6 sites:</p>
<ul>
<li><a href="http://www.stopie6.com/">StopIE6.com</a></li>
<li><a href="http://ie6update.com/">IE6Update.com</a></li>
<li><a href="http://www.stoplivinginthepast.com/">StopLivingInThePast.com</a></li>
<li><a href="http://www.saveie6.com/">SaveIE6.com</a> (April Fools Joke)</li>
<li><a href="http://iedeathmarch.org/">IEDeathMarch.org</a></li>
<li><a href="http://www.dearie6.com/">DearIE6.com</a></li>
<li><a href="http://idroppedie6.com/">IDroppedIE6.com</a></li>
</ul>
<p>And David DeSandro <a href="http://desandro.com/articles/i-like-ie6-because">agrees with my attitude towards IE6</a>.</p>
<p><a href="http://www.russellheimlich.com/blog/developers-stop-whining-about-ie6/">Developers: Stop Whining About IE6</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.russellheimlich.com/blog/developers-stop-whining-about-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pure CSS Shapes: Triangles, Delicious Logo, and Hearts</title>
		<link>http://www.russellheimlich.com/blog/pure-css-shapes-triangles-delicious-logo-and-hearts/</link>
		<comments>http://www.russellheimlich.com/blog/pure-css-shapes-triangles-delicious-logo-and-hearts/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 03:15:13 +0000</pubDate>
		<dc:creator>Russell Heimlich</dc:creator>
				<category><![CDATA[CSS/HTML]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[box model]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[polygon]]></category>
		<category><![CDATA[shapes]]></category>
		<category><![CDATA[Smashing Magazine]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[stylesheet]]></category>
		<category><![CDATA[techniques]]></category>

		<guid isPermaLink="false">http://www.russellheimlich.com/blog/?p=1695</guid>
		<description><![CDATA[After reading through Smashing Magazine&#8217;s latest article, 50 New CSS Techniques For Your Next Web Design, I came across an article glossing over a technique for creating a triangle using pure CSS. A triangle using just CSS? That blew my mind! How is that even possible? After playing around with the sample CSS I started [...]<p><a href="http://www.russellheimlich.com/blog/pure-css-shapes-triangles-delicious-logo-and-hearts/">Pure CSS Shapes: Triangles, Delicious Logo, and Hearts</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></description>
			<content:encoded><![CDATA[<p>After reading through Smashing Magazine&#8217;s latest article, <a href="http://www.smashingmagazine.com/2009/07/20/50-new-css-techniques-for-your-next-web-design/">50 New CSS Techniques For Your Next Web Design</a>, I came across an article glossing over a technique for <a href="http://www.filamentgroup.com/lab/image_free_css_tooltip_pointers_a_use_for_polygonal_css/">creating a triangle using pure CSS</a>.  A triangle using just CSS? That blew my mind! How is that even possible?</p>
<p>After playing around with the sample CSS I started to get it. Using an empty HTML element and the border properties, you can make all kinds of shapes. Here is how it works. </p>
<p>Note: As expected, Internet Explorer acts a bit wonky especially IE6. These experiments were done in Firefox 3.5 but you can see <a href="http://www.russellheimlich.com/blog/wp-content/uploads/2009/07/css-shapes-russellheimlich.png">what they should look like</a> in a screenshot I took. </p>
<p>Per <a href="http://css-tricks.com/the-css-box-model/">the box model</a>, the border outlines the perimeter of an element. When an element has a width and height of 0px the border-width&#8217;s make up the dimensions of the element.The corners of borders meet at a 45&deg; angle which is apparent with larger border widths and what makes pure CSS shapes possible. The final CSS to make a 200 pixel tall red triangle pointing up looks like this:</p>
<div style="border-color: transparent transparent red transparent; border-style: solid; border-width: 0 200px 200px 200px; height: 0px; width: 0px;"></div>
<p>But let&#8217;s see how we got to this conclusion step by step starting with a basic square and borders. Each border will be given a different color so we can tell them apart.</p>
<div style="border-color: yellow blue red green; border-style: solid; border-width: 200px 200px 200px 200px; height: 0px; width: 0px;"></div>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.triangle</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">yellow</span> <span style="color: #000000; font-weight: bold;">blue</span> <span style="color: #993333;">red</span> <span style="color: #993333;">green</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span> <span style="color: #933;">200px</span> <span style="color: #933;">200px</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>We won&#8217;t need the top border so we can set its width to 0px. This makes our triangle easy to measure without any extra space on top; a border-bottom value of 200px will result in a triangle that is 200px tall.</p>
<div style="border-color: yellow blue red green; border-style: solid; border-width: 0px 200px 200px 200px; height: 0px; width: 0px;"></div>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.triangle</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">yellow</span> <span style="color: #000000; font-weight: bold;">blue</span> <span style="color: #993333;">red</span> <span style="color: #993333;">green</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">200px</span> <span style="color: #933;">200px</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>To hide the two side triangles we set the border-color to transparent. If we set the border-left and border-right widths to 0px then the whole shape would collapse, leaving us with nothing. Since the top-border has been effectively deleted, we can set the border-top-color to transparent as well.</p>
<div style="border-color: transparent transparent red transparent; border-style: solid; border-width: 0px 200px 200px 200px; height: 0px; width: 0px;"></div>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"> <span style="color: #6666ff;">.triangle</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">red</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">200px</span> <span style="color: #933;">200px</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>There you have it; a triangle using only a single, empty HTML element and some CSS. The same technique can be applied to the other three sides for different orientations. Where might this come in handy? A JavaScript toggle to indicate a container is visible comes to mind. And using a pure CSS triangle is a lot more convenient than coming up with new images for each variation.</p>
<p>Try playing around with different widths to create different kinds of triangles. You can also get some funky effects by changing the border-style; dotted produces a neat effect on our regular bordered square.</p>
<div style="border-color: yellow blue red green; border-style: dotted; border-width: 200px 200px 200px 200px; height: 0px; width: 0px;"></div>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.funkyShape</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">yellow</span> <span style="color: #000000; font-weight: bold;">blue</span> <span style="color: #993333;">red</span> <span style="color: #993333;">green</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">dotted</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span> <span style="color: #933;">200px</span> <span style="color: #933;">200px</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>I even managed to come up with the <a href="http://del.icio.us">del.icio.us</a> logo.</p>
<div style="border-color:#FFFFFF #3274D0 #D3D2D2 #000000; border-style:dashed; border-width:150px; height:0; width:0;"></div>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.delicious</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span> <span style="color: #cc00cc;">#3274D0</span> <span style="color: #cc00cc;">#D3D2D2</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">dashed</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span><span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And a heart shape.</p>
<div style="border-color:red; border-style:dotted; border-width:0px 150px 150px 0px; height:0px; margin-left:90px; margin-top:90px; width:0px;"></div>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.heart</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span><span style="color: #993333;">red</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">dotted</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">150px</span> <span style="color: #933;">150px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">90px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">90px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>I wasn&#8217;t the first one to explore CSS shapes, it turns out Tantek Çelik was playing around with these ideas <a href="http://tantek.com/CSS/Examples/polygons.html">way back in 2001</a>.</p>
<p><a href="http://www.russellheimlich.com/blog/pure-css-shapes-triangles-delicious-logo-and-hearts/">Pure CSS Shapes: Triangles, Delicious Logo, and Hearts</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.russellheimlich.com/blog/pure-css-shapes-triangles-delicious-logo-and-hearts/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>target=&#8221;_blank&#8221; vs. target=&#8221;_new&#8221;</title>
		<link>http://www.russellheimlich.com/blog/target_blank-vs-target_new/</link>
		<comments>http://www.russellheimlich.com/blog/target_blank-vs-target_new/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 01:34:37 +0000</pubDate>
		<dc:creator>Russell Heimlich</dc:creator>
				<category><![CDATA[CSS/HTML]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[blank]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[popup]]></category>
		<category><![CDATA[target]]></category>
		<category><![CDATA[window]]></category>
		<category><![CDATA[_new]]></category>

		<guid isPermaLink="false">http://www.russellheimlich.com/blog/?p=1616</guid>
		<description><![CDATA[The target attribute of a link forces the browser to open the destination page in a new browser window. Using _blank as a target value will spawn a new window every time while using _new will only spawn one new window and every link clicked with a target value of _new will replace the page [...]<p><a href="http://www.russellheimlich.com/blog/target_blank-vs-target_new/">target=&#8221;_blank&#8221; vs. target=&#8221;_new&#8221;</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/whartz/2912753427/"><img src="http://www.russellheimlich.com/blog/wp-content/uploads/2009/06/bullseye-target.jpg" alt="Bullseye Target for Archery Practice" title="Bullseye Target for Archery Practice" width="500" height="281" class="size-full wp-image-1622" /></a></p>
<p>The target attribute of a link forces the browser to open the destination page in a new browser window. Using <em>_blank</em> as a target value will spawn a new window every time while using <em>_new</em> will only spawn one new window and every link clicked with a target value of <em>_new</em> will replace the page loaded in the previously spawned window. Try it out for yourself:</p>
<h6>Links with target=&#8221;_blank&#8221;</h6>
<p>
<a href="http://www.google.com" target="_blank">Google</a> | <a href="http://www.yahoo.com" target="_blank">Yahoo</a> | <a href="http://www.bing.com" target="_blank">Bing</a>
</p>
<h6>Links with target=&#8221;_new&#8221;</h6>
<p>
<a href="http://www.google.com" target="_new">Google</a> | <a href="http://www.yahoo.com" target="_new">Yahoo</a> | <a href="http://www.bing.com" target="_new">Bing</a>
</p>
<p><em>target=&#8221;_new&#8221;</em> is not a standard target value. You could use any term you like and any link that has the same target value will open in a previously spawned window. See the <em>target=&#8221;booger&#8221;</em> example below.</p>
<h6>Links with target=&#8221;booger&#8221;</h6>
<p>
<a href="http://www.google.com" target="booger">Google</a> | <a href="http://www.yahoo.com" target="booger">Yahoo</a> | <a href="http://www.bing.com" target="booger">Bing</a>
</p>
<h4>How can I force a link to open in a new tab instead of a new window?</h4>
<p>There is currently no way to force a window to open in a new tab for browsers with this feature. This functionality can only be set in the preferences of the browser (see other resources section below).</p>
<h4>What if I want the new window to display at a certain size?</h4>
<p>The only way to do this is by using JavaScript. I recommend the method outlined at <a href="http://www.quirksmode.org/js/popup.html">Quirksmode.org</a>.</p>
<h4>Other Rescources</h4>
<ul>
<li><a href="http://reference.sitepoint.com/html/a/target">http://reference.sitepoint.com/html/a/target</a> &#8211; Sitepoint reference for the target attribute.</li>
<li><a href="http://support.mozilla.com/en-US/kb/Options+window+-+Tabs+panel">http://support.mozilla.com/en-US/kb/Options+window+-+Tabs+panel</a> &#8211; How to configure Firefox to open new windows in new tabs.</li>
<li><a href="http://www.tech-recipes.com/rx/1164/internet-explorer-7-open-new-windows-in-tabs-in-ie7/">http://www.tech-recipes.com/rx/1164/internet-explorer-7-open-new-windows-in-tabs-in-ie7/</a> &#8211; How to configure IE7 to open new windows in new tabs instead.</li>
</ul>
<p>Of course all of this is moot since <a href="http://www.smashingmagazine.com/2008/07/01/should-links-open-in-new-windows/">opening pages in new windows is a usability annoyance</a>. </p>
<p><a href="http://www.russellheimlich.com/blog/target_blank-vs-target_new/">target=&#8221;_blank&#8221; vs. target=&#8221;_new&#8221;</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.russellheimlich.com/blog/target_blank-vs-target_new/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Does The IMG Tag Need A Fullsize Attribute?</title>
		<link>http://www.russellheimlich.com/blog/does-the-img-tag-need-a-fullsize-attribute/</link>
		<comments>http://www.russellheimlich.com/blog/does-the-img-tag-need-a-fullsize-attribute/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 04:01:21 +0000</pubDate>
		<dc:creator>Russell Heimlich</dc:creator>
				<category><![CDATA[CSS/HTML]]></category>
		<category><![CDATA[addfullsize.com]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Drew Wilson]]></category>
		<category><![CDATA[fullsize]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IMG]]></category>
		<category><![CDATA[standard]]></category>
		<category><![CDATA[W3C]]></category>

		<guid isPermaLink="false">http://www.russellheimlich.com/blog/?p=1482</guid>
		<description><![CDATA[Drew Wilson is proposing the HTML IMG tag get a new attribute called fullsize. The fullsize attribute would reference &#8220;a larger (or fullsize) version of the SRC image. Browsers could then include native support to display the fullsize image in a [modal] pop-up.&#8221; according to addfullsize.com, Wilson&#8217;s site dedicated to the effort. Mr. Wilson has [...]<p><a href="http://www.russellheimlich.com/blog/does-the-img-tag-need-a-fullsize-attribute/">Does The IMG Tag Need A Fullsize Attribute?</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.drewwilson.com/archives/main_blog/fullsize_a_new_img_tag_attribute/">Drew Wilson</a> is proposing the HTML IMG tag get a new attribute called <em>fullsize</em>. The <em>fullsize</em> attribute would reference &#8220;a larger (or fullsize) version of the SRC image. Browsers could then include native support to display the fullsize image in a [modal] pop-up.&#8221; according to <a href="http://www.addfullsize.com/">addfullsize.com</a>, Wilson&#8217;s site dedicated to the effort. Mr. Wilson has even gone to the trouble of creating a jQuery plug-in that simulates how the behavior would work. He hopes the Internet will make enough buzz about it to get the attention of the <a href="http://www.w3.org/" title="World Wide Web Consortium">W3C</a> in order to get the <em>fullsize</em> attribute included in the official HTML spec.  As of this writing, the petition to add a <em>fullsize</em> attribute has 185 &#8220;signatures&#8221;.  I am not one of them.</p>
<p><a href="http://www.addfullsize.com/"><img src="http://www.russellheimlich.com/blog/wp-content/uploads/2009/04/fullsize-a-new-image-attribute.jpg" alt="Drew Wilson is proposing the W3C add a new attribute to the IMG tag called fullsize." title="Fullsize a new image attribute" width="600" height="166" class="size-full wp-image-1485" /></a></p>
<p>I&#8217;m not against the idea of including a reference to a larger version of an image right inside the tag. HTML is all about structuring and describing content, and the <em>fullsize</em> attribute is just another piece of meta-data. My biggest problem is this is already possible today by wrapping a link pointing to the fullsize image around the original image. Is it sexy? No. But it is still flexible. It can be customized and jazzed up with JavaScript and CSS but for devices that don&#8217;t support those technologies, a link around an image would still be accessible. </p>
<p>What I&#8217;m <del>weary</del> wary about is letting the browser manufacturers determine the default pop-up behavior and then relying on them for easier customization options. Take <a href="http://www.w3schools.com/TAGS/tag_Select.asp">drop down input elements</a> for example. Getting these to look consistent across all of the different browsers and operating systems in the world today is impossible. Roger Johansson went through the effort and documented them on his blog <a href="http://www.456bereastreet.com/lab/form_controls/select/">456bereastreet.com</a>. Any saved time from browsers handling a pop-up would be wasted trying to work around the different limitations for each browser. </p>
<p>To summarize:</p>
<ul>
<li>I&#8217;m all for a <em>fullsize</em> attribute for meta-data purposes</li>
<li>Browsers handling the pop-up functionality will do more harm than good</li>
</ul>
<p><a href="http://www.russellheimlich.com/blog/does-the-img-tag-need-a-fullsize-attribute/">Does The IMG Tag Need A Fullsize Attribute?</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.russellheimlich.com/blog/does-the-img-tag-need-a-fullsize-attribute/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>KristinaNaude.com: From Comp To Code In 12 Hours</title>
		<link>http://www.russellheimlich.com/blog/kristinanaudecom-from-comp-to-code-in-12-hours/</link>
		<comments>http://www.russellheimlich.com/blog/kristinanaudecom-from-comp-to-code-in-12-hours/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 03:03:37 +0000</pubDate>
		<dc:creator>Russell Heimlich</dc:creator>
				<category><![CDATA[CSS/HTML]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[carousel]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Kristina Naude]]></category>

		<guid isPermaLink="false">http://www.russellheimlich.com/blog/?p=1436</guid>
		<description><![CDATA[Kristina had been toying with the idea of her own website for a couple weeks now. However, this past weekend, she got around to comping one together. She has been fascinated with the eclectic desk style that seems popular these days. While she was busy in Photoshop, I was setting up the domain and basic [...]<p><a href="http://www.russellheimlich.com/blog/kristinanaudecom-from-comp-to-code-in-12-hours/">KristinaNaude.com: From Comp To Code In 12 Hours</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Kristina had been toying with the idea of her own website for a couple weeks now. However, this past weekend, she got around to comping one together. She has been fascinated with the <a href="http://sashaendoh.blogspot.com/2008/10/web-design-trends-whats-on-your-desk.html">eclectic desk style</a> that seems popular these days. While she was busy in Photoshop, I was setting up the domain and basic file structure.  Since it&#8217;s a small site, the preparation didn&#8217;t take long. In fact the most time consuming task involved cutting images up from the comp and organizing them.  Coding was a snap. The site is a basic 3 column layout and most everything is an image.</p>
<p><a href="http://www.kristinanaude.com"><br />
<img src="http://www.russellheimlich.com/blog/wp-content/uploads/2009/02/kristinanaude-screenshot.png" alt="KristinaNaude.com Screenshot" title="KristinaNaude.com Screenshot" width="600" height="613" class="alignnone size-full wp-image-1440" /></a></p>
<p>Creating the carousel to page through her resume was a custom job that took me about 20 minutes using <a href="http://jquery.com/">jQuery</a>.  I had hoped to just go out to the jQuery community and find a nifty <a href="http://plugins.jquery.com/search/node/Carousel+type%3Aproject_project">carousel plugin</a> that I could just drop in and be on my way. Unfortunately this wasn&#8217;t the case. While there were plenty of options out there, everything was over engineered and too rigid. Most require the content to be an unordered list but I was using a set of divs. This shouldn&#8217;t make a lick of difference as any jQuery selector could be used. </p>
<p>Carousel scripts are pretty basic. You need a set of items to rotate through, a container to hold the items, and a frame to mask off the ugly parts. Some basic styling is used to line the items up in a row. The container is given a <a href="http://reference.sitepoint.com/css/position">postion of absolute</a> so it can be freely moved left and right and a large width to hold all of the items inside. The frame needs the <a href="http://reference.sitepoint.com/css/overflow">overflow property set to hidden</a> to mask out the items that we don&#8217;t want the user to see. To pull off the animation we use jQuery&#8217;s handy <a href="http://docs.jquery.com/Effects/animate#paramsoptions">animate() method</a> for the left and right positioning of the container element. This lets us set a key point and jQuery will handle the interpolation from the current value to the key point. Attach this function to a next and previous button and you&#8217;re ready to go with your own custom carousel that works the way you want it to.</p>
<p><img src="http://www.russellheimlich.com/blog/wp-content/uploads/2009/02/how-a-carousel-works.png" alt="How A Carousel Works" title="How A Carousel Works" width="600" height="800" class="alignnone size-full wp-image-1437" /></p>
<p>It was a lot of fun to create a brand new site from scratch without any legacy content or rigid CMS. Simple websites are fun! And if you haven&#8217;t checked out the fruits of both of our labors, then please immediately proceed to <a href="http://www.kristinanaude.com">KristinaNaude.com</a>.</p>
<p><a href="http://www.russellheimlich.com/blog/kristinanaudecom-from-comp-to-code-in-12-hours/">KristinaNaude.com: From Comp To Code In 12 Hours</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.russellheimlich.com/blog/kristinanaudecom-from-comp-to-code-in-12-hours/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>IE Gets A CSS Rule Right</title>
		<link>http://www.russellheimlich.com/blog/ie-gets-a-css-rule-right/</link>
		<comments>http://www.russellheimlich.com/blog/ie-gets-a-css-rule-right/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 01:48:14 +0000</pubDate>
		<dc:creator>Russell Heimlich</dc:creator>
				<category><![CDATA[CSS/HTML]]></category>
		<category><![CDATA[background-position]]></category>
		<category><![CDATA[background-position-x]]></category>
		<category><![CDATA[background-position-y]]></category>
		<category><![CDATA[cards]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[suites]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.russellheimlich.com/blog/?p=1136</guid>
		<description><![CDATA[Web developers like to rag on Microsoft&#8217;s Internet Explorer every chance they get due it&#8217;s sub-par support for HTML/CSS standards. But one thing Microsoft did get right was support for background-position-x and background-position-y. The background-position property lets you control the placement of the background image of an element. Background-position-x and background-position-y let you control the [...]<p><a href="http://www.russellheimlich.com/blog/ie-gets-a-css-rule-right/">IE Gets A CSS Rule Right</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Web developers like to <a href="http://www.savethedevelopers.org/">rag on Microsoft&#8217;s Internet Explorer</a> every chance they get due it&#8217;s sub-par support for HTML/CSS standards. But one thing Microsoft did get right was support for background-position-x and background-position-y.  The background-position property lets you control the placement of the background image of an element. Background-position-x and background-position-y let you control the placement independently. </p>
<p>What are some practical uses of controlling the background position independently? Take a card game, for example. Instead of assigning a separate background image for each card you could make a <a href="http://david.bellot.free.fr/svg-cards/">single image that has all the cards</a> in a grid (see below). To show every card you would only need 18 classes: 1 for the common card styles, 4 for the background position of each suit, and 13 for the background position of each value (Ace, two, three etc.)</p>
<p><a href="http://david.bellot.free.fr/svg-cards/"><img src="http://www.russellheimlich.com/blog/wp-content/uploads/2008/10/playing-cards.png" alt="" title="Playing Cards" width="500" height="224" class="alignnone size-full wp-image-1137" /></a></p>
<p>The CSS for the image above would look like this&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.card</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">78px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">52px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">/foo/card-image.png</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #3333ff;">:no-</span>repeat<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Suites */</span>
<span style="color: #6666ff;">.clubs</span> <span style="color: #00AA00;">&#123;</span> background-position-y<span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.diamonds</span> <span style="color: #00AA00;">&#123;</span> background-position-y<span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.hearts</span> <span style="color: #00AA00;">&#123;</span> background-position-y<span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.spades</span> <span style="color: #00AA00;">&#123;</span> background-position-y<span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Values */</span>
<span style="color: #6666ff;">.ace</span> <span style="color: #00AA00;">&#123;</span> background-position-x<span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.two</span> <span style="color: #00AA00;">&#123;</span> background-position-x<span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">7.5</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.three</span> <span style="color: #00AA00;">&#123;</span> background-position-x<span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">7.5</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.four</span> <span style="color: #00AA00;">&#123;</span> background-position-x<span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">7.5</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.five</span> <span style="color: #00AA00;">&#123;</span> background-position-x<span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">7.5</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* etc. */</span></pre></div></div>

<p>The HTML would be simple, elegant, and look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a class=&quot;card hearts five&quot;&gt;Five of Hearts&lt;/a&gt;
&nbsp;
&lt;a class=&quot;card spade jack&quot;&gt;Jack of Spades&lt;/a&gt;</pre></div></div>

<p>Alas if only life were that simple. Currently only IE 5.0+ and Safari 1.2+ support <a href="http://www.aptana.com/reference/html/api/CSS.field.background-position-x.html">background-position-x</a> and background-position-y.  Every other browser ignores the properties, defaulting to the upper left position.</p>
<p>Instead this is how the CSS code would look if you were writing it for support with all browsers&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* clubs */</span> 
<span style="color: #6666ff;">.ace-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.two-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">7.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.three-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">15</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.four-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">22.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.five-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">30</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.six-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">37.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.seven-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">45</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.eight-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">52.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.nine-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">60</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.ten-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">67.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.jack-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.queen-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">82.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.king-clubs</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">90</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">/* spades */</span> 
<span style="color: #6666ff;">.ace-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.two-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">7.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.three-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">15</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.four-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">22.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.five-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">30</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.six-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">37.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.seven-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">45</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.eight-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">52.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.nine-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">60</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.ten-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">67.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.jack-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.queen-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">82.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.king-spades</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">90</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">/* hearts */</span> 
<span style="color: #6666ff;">.ace-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.two-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">7.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.three-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">15</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.four-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">22.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.five-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">30</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.six-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">37.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.seven-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">45</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.eight-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">52.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.nine-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">60</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.ten-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">67.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.jack-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.queen-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">82.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.king-hearts</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">90</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">/* diamonds */</span> 
<span style="color: #6666ff;">.ace-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">0</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.two-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">7.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.three-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">15</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.four-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">22.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.five-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">30</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.six-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">37.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.seven-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">45</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.eight-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">52.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.nine-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">60</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.ten-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">67.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.jack-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.queen-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">82.5</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.king-diamonds</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">90</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">75</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>That&#8217;s a class for each card or 52 for those following along at home. Bloat city.</p>
<p>So kudos to Microsoft for letting developers be flexible in at least one area. Now if all the other CSS properties were as flawless as this we would be in business.  </p>
<p><a href="http://www.russellheimlich.com/blog/ie-gets-a-css-rule-right/">IE Gets A CSS Rule Right</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.russellheimlich.com/blog/ie-gets-a-css-rule-right/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Homer Simpson In Pure HTML/CSS</title>
		<link>http://www.russellheimlich.com/blog/homer-simpson-in-pure-htmlcss/</link>
		<comments>http://www.russellheimlich.com/blog/homer-simpson-in-pure-htmlcss/#comments</comments>
		<pubDate>Thu, 01 May 2008 20:23:14 +0000</pubDate>
		<dc:creator>Russell Heimlich</dc:creator>
				<category><![CDATA[CSS/HTML]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Homer Simpson]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[scalable]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://www.russellheimlich.com/blog/?p=793</guid>
		<description><![CDATA[Rom&#225;n Cort&#233;s managed to create a dead-on recreation of Homer Simpson using nothing but HTML/CSS. To boot it is essentially a vector image that will scale if you increase the text size of your browser. Go to the page and press the control and the &#8216;+&#8217; key at the same time to see what I [...]<p><a href="http://www.russellheimlich.com/blog/homer-simpson-in-pure-htmlcss/">Homer Simpson In Pure HTML/CSS</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.romancortes.com/">Rom&aacute;n Cort&eacute;s</a> managed to create a dead-on recreation of Homer Simpson using nothing but HTML/CSS. To boot it is essentially a vector image that will scale if you increase the text size of your browser. Go to <a href="http://www.romancortes.com/blog/homer-css/">the page</a> and press the control and the &#8216;+&#8217; key at the same time to see what I mean.</p>
<p><a href="http://www.romancortes.com/blog/homer-css/"><br />
<img src="http://www.russellheimlich.com/blog/wp-content/uploads/2008/04/homer-in-html-css.png" alt="Homer Simpson in HTML/CSS" title="Homer Simpson in html/css" width="336" height="424" class="alignnone size-full wp-image-794" /></a></p>
<p>The source code isn&#8217;t too pretty but for this spectacle it is certainly understandable. It just makes a good case that open technologies like <a href="http://en.wikipedia.org/wiki/Scalable_Vector_Graphics">SVG</a>, which will make it easier to construct vector graphics out of XML code, need to be adopted much faster.</p>
<p><a href="http://www.russellheimlich.com/blog/homer-simpson-in-pure-htmlcss/">Homer Simpson In Pure HTML/CSS</a> by <a href="http://www.russellheimlich.com/blog">Russell Heimlich</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.russellheimlich.com/blog/homer-simpson-in-pure-htmlcss/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
