<?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>Ian Hoar – Passion for Technology – Geeking Out &#187; Code</title>
	<atom:link href="http://www.ianhoar.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ianhoar.com</link>
	<description>Technology, Web, Toys, Games, Design, Entertainment, Gadgets, &#38; Geeking Out</description>
	<lastBuildDate>Sun, 11 Jul 2010 04:06:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Zen Coding &#8211; a new way to write HTML lightning fast</title>
		<link>http://www.ianhoar.com/2010/07/10/zen-coding-a-new-way-to-write-html-lightning-fast/</link>
		<comments>http://www.ianhoar.com/2010/07/10/zen-coding-a-new-way-to-write-html-lightning-fast/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 03:27:04 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Neato]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=4016</guid>
		<description><![CDATA[The other day I purchased a new editor called Coda. I might review this fantastic little piece of software at a later date, but one of the reasons I purchased it was to use some of the many plugins the community has created for it. One of these plugins has been produced for several editors [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-4050" title="Zen Bonsai" src="http://www.ianhoar.com/wp-content/uploads/2010/07/zen_bonsai.png" alt="Zen Bonsai" width="200" height="228" />The other day I purchased a <a href="http://www.panic.com/coda/">new editor called Coda</a>. I might review this fantastic little piece of software at a later date, but one of the reasons I purchased it was to use some of the many plugins the community has created for it. One of these plugins has been produced for several editors and could change how you code. It&#8217;s called <strong><a href="http://code.google.com/p/zen-coding/">Zen Coding</a></strong>, and it will make you write large chunks of HTML a lighting speeds.</p>
<h2>What is Zen Coding?</h2>
<p>Zen Coding is hard to explain, but if you have been working with HTML and CSS for awhile now you should be able to pick it up very quickly. It&#8217;s easy to learn and best shown by example, so lets start with an example.</p>
<p><span id="more-4016"></span></p>
<p>Say I want a <em>div</em> with an <em>id</em> of <em>frame</em> and a <em>class</em> of <em>indent</em>, I would type:</p>
<p><strong>div#frame.indent</strong></p>
<p>In the Coda editor hitting F1 would turn the above into this:<strong><br />
</strong></p>
<pre>&lt;div id="frame" class="indent"&gt;&lt;/div&gt;</pre>
<p>That&#8217;s pretty cool, but not life changing, but how about something like this.</p>
<p><strong>table&gt;tr*3&gt;td*4</strong></p>
<pre>&lt;table&gt;
	&lt;tr&gt;
		&lt;td&gt;&lt;/td&gt;
		&lt;td&gt;&lt;/td&gt;
		&lt;td&gt;&lt;/td&gt;
		&lt;td&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;&lt;/td&gt;
		&lt;td&gt;&lt;/td&gt;
		&lt;td&gt;&lt;/td&gt;
		&lt;td&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;&lt;/td&gt;
		&lt;td&gt;&lt;/td&gt;
		&lt;td&gt;&lt;/td&gt;
		&lt;td&gt;&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
</pre>
<p>Okay, I know what your saying, who needs complex tables anymore! Well, email newsletters and tabular data for one, but how about this.</p>
<p><strong>ul#navigation&gt;li.link*5</strong></p>
<pre>&lt;ul id="navigation"&gt;
	&lt;li class="link"&gt;&lt;/li&gt;
	&lt;li class="link"&gt;&lt;/li&gt;
	&lt;li class="link"&gt;&lt;/li&gt;
	&lt;li class="link"&gt;&lt;/li&gt;
	&lt;li class="link"&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>
<p>What if each link class needs to be unique?</p>
<p><strong>ul#navigation&gt;li.link-$*5</strong></p>
<pre>&amp;lt;ul id="navigation"&gt;
	&amp;lt;li class="link-1"&gt;&amp;lt;/li&gt;
	&amp;lt;li class="link-2"&gt;&amp;lt;/li&gt;
	&amp;lt;li class="link-3"&gt;&amp;lt;/li&gt;
	&amp;lt;li class="link-4"&gt;&amp;lt;/li&gt;
	&amp;lt;li class="link-5"&gt;&amp;lt;/li&gt;
&amp;lt;/ul&gt;</pre>
<p>How about adding a strong tag in each bullet.</p>
<p><strong>ul#navigation&gt;li.link-$*5&gt;strong</strong></p>
<pre>&lt;ul id="navigation"&gt;
	&lt;li class="link-1"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/li&gt;
	&lt;li class="link-2"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/li&gt;
	&lt;li class="link-3"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/li&gt;
	&lt;li class="link-4"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/li&gt;
	&lt;li class="link-5"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>Want a bunch of caption blocks?<br />
<strong>div.caption*5&gt;h1+h2+p</strong></p>
<pre>&lt;div class="caption"&gt;
	&lt;h1&gt;&lt;/h1&gt;
	&lt;h2&gt;&lt;/h2&gt;
	&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="caption"&gt;
	&lt;h1&gt;&lt;/h1&gt;
	&lt;h2&gt;&lt;/h2&gt;
	&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="caption"&gt;
	&lt;h1&gt;&lt;/h1&gt;
	&lt;h2&gt;&lt;/h2&gt;
	&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="caption"&gt;
	&lt;h1&gt;&lt;/h1&gt;
	&lt;h2&gt;&lt;/h2&gt;
	&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="caption"&gt;
	&lt;h1&gt;&lt;/h1&gt;
	&lt;h2&gt;&lt;/h2&gt;
	&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;</pre>
<p>Attributes? Got that covered too.</p>
<p><strong>a[href="link$.html" target="_blank"]*3</strong></p>
<pre>&lt;a href="link1.html" target="_blank"&gt;&lt;/a&gt;
&lt;a href="link2.html" target="_blank"&gt;&lt;/a&gt;
&lt;a href="link3.html" target="_blank"&gt;&lt;/a&gt;
</pre>
<p>Okay, it&#8217;s probably clear by now that I think Zen Coding is awesome and maybe I&#8217;m getting carried away now, but lets try one more. This one helped me post all the examples above to this post by using a filter. Adding a <em>|e</em> filter to the end of the above example will escape all unsafe XML characters with HTML entities. Perfect for posting code examples.</p>
<p><strong>a[href="link$.html" target="_blank"]*3|e</strong></p>
<pre>
&amp;lt;a href="link1.html" target="_blank"&amp;gt;&amp;lt;/a&amp;gt;
&amp;lt;a href="link2.html" target="_blank"&amp;gt;&amp;lt;/a&amp;gt;
&amp;lt;a href="link3.html" target="_blank"&amp;gt;&amp;lt;/a&amp;gt;
</pre>
<h2>Many editors are supported</h2>
<p>Don&#8217;t have coda? That&#8217;s not a problem, <a href="http://code.google.com/p/zen-coding/">many editors are supported</a> and chances are you are familiar with one of them. There&#8217;s even a PHP version called <a href="http://code.google.com/p/zen-php/">ZenPHP</a> which will generate blocks of HTML in a similar fashion. If you have any really cool Zen Coding selectors post them in the comments.</p>
<ul>
<li><a href="http://code.google.com/p/zen-coding/">Official Project site</a></li>
<li><a href="http://code.google.com/p/zen-coding/wiki/ZenHTMLSelectorsEn">More selector examples</a></li>
<li><a href="http://code.google.com/p/zen-coding/wiki/Filters">List of filters</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2010/07/10/zen-coding-a-new-way-to-write-html-lightning-fast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Outlook 2007 losing font-family declaration</title>
		<link>http://www.ianhoar.com/2010/06/27/outlook-2007-losing-font-family-declaration/</link>
		<comments>http://www.ianhoar.com/2010/06/27/outlook-2007-losing-font-family-declaration/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 23:35:11 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[email newsletters]]></category>
		<category><![CDATA[outlook]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3861</guid>
		<description><![CDATA[Email clients are one of the pinnacle frustrations for web designers. The limitations are far greater than those of web browsers and you can always count on Microsoft&#8217;s Outlook 2007 being at the forefront of compatibility problems and bug issues. If you create emails that have to support Outlook 2007&#8242;s wonky Word rendering you may [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-3397" title="Outlook 2007" src="http://www.ianhoar.com/wp-content/uploads/2008/12/outlook_2007.jpg" alt="" width="150" height="147" />Email clients are one of the pinnacle frustrations for web designers. The limitations are far greater than those of web browsers and you can always count on Microsoft&#8217;s Outlook 2007 being at the forefront of compatibility problems and bug issues. If you create emails that have to support Outlook 2007&#8242;s wonky Word rendering you may have noticed on occasion that your specified <strong>font-family</strong> disappears. There&#8217;s a few ways to fix this, <strong>but some are better than others</strong>.</p>
<p><span id="more-3861"></span></p>
<h2>Keeping code clean in the messy world of email newsletters</h2>
<p>Obviously putting the <strong>font-family</strong> in the <strong>table</strong> or a surrounding <strong>div</strong> should do the trick, and it does for everything <strong>except Outlook 2007</strong>, for some reasons <strong>font-family</strong> declarations do not cascade. One easy but tedious way to fix this issue is to put inline styles all over the place. I don&#8217;t like this method, it makes it easy to forget sections of copy and it messy. I always especially <strong>avoid using inline styles on paragraph tags</strong>. You have have almost no control on the <strong>p</strong> tags anyway. Put everything you need in your <strong>td</strong> tags and leave your <strong>p</strong> tags clean.</p>
<p>So you might be thinking well then I&#8217;ll just add <strong>font-family</strong> declarations to all my <strong>td</strong> tags. Again this is slightly less messy, but still messy and our newsletters markup are awfully messy as it is. This is a place where you can <strong>use an embedded style</strong>. I know there are blanket rules like never user anything but inline styles, but this is not always the case, and blanket rules never benefit anyone. There are places for embedded styles, and they are even required in some cases for optimal cross client compatibility as I wrote about in &#8220;<a href="http://www.ianhoar.com/2008/12/06/outlook-2007-inline-styles-and-links/">Outlook 2007, inline styles, and links</a>&#8220;. The thing you must always remember when using embedded styles is that other email clients like Gmail are going to ignore them completely, so <strong>build in redundancies</strong>.</p>
<h2>Style the table data</h2>
<p>The fix is simple, you only need to declare your font-family twice. Use an inline style once in your <strong>table</strong>.</p>
<pre>&lt;table border="0" cellspacing="0" cellpadding="0" style="font-family:font-family:Verdana, Geneva, sans-serif;"&gt;
</pre>
<p>At the top of your page add this to your embedded style.</p>
<pre>&lt;style media="all" type="text/css"&gt;
td {
     font-family:font-family:Verdana, Geneva, sans-serif;
}
&lt;/style&gt;
</pre>
<p>Now you have made Outlook 2007 happy and given every <strong>td</strong> in your email newsletter a <strong>font-family</strong>. When the embedded style is stripped in other clients like Gmail you are still keeping the client happy, because <strong>other clients won&#8217;t ignore the font-family in the table tag</strong> and it will actually cascade throughout the document.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2010/06/27/outlook-2007-losing-font-family-declaration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix floated images and list overlap</title>
		<link>http://www.ianhoar.com/2010/05/24/lists-and-floated-images-without-overlap/</link>
		<comments>http://www.ianhoar.com/2010/05/24/lists-and-floated-images-without-overlap/#comments</comments>
		<pubDate>Tue, 25 May 2010 00:47:03 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3987</guid>
		<description><![CDATA[The other day I was looking at my blog and saw that one of the posts had a left floated image followed by a bulleted list. The problem was that the list was not indenting properly the way it did when next to a paragraph without a floated element. After a bit of searching and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-4003" title="Bug" src="http://www.ianhoar.com/wp-content/uploads/2010/05/bug.png" alt="Bug" width="128" height="128" />The other day I was looking at my blog and saw that one of the posts had a left floated image followed by a bulleted list. The problem was that the list was not indenting properly the way it did when next to a paragraph without a floated element. After a bit of searching and hair pulling I found a discussion that solved my problem.</p>
<p><span id="more-3987"></span></p>
<h2>The problem illustrated</h2>
<p><img class="alignnone size-full wp-image-3990" style="margin-right: 10px;" title="Floated image incorrect" src="http://www.ianhoar.com/wp-content/uploads/2010/05/float_image_list_wrong.jpg" alt="Floated image incorrect" width="350" height="390" /><img class="alignnone size-full wp-image-3989" title="Floated image correct" src="http://www.ianhoar.com/wp-content/uploads/2010/05/float_image_list_correct.jpg" alt="Floated image correct" width="349" height="390" /></p>
<p>As you can see the list on the left image does not properly aligned, while the one on the right is. The fix is quite simple.</p>
<pre>ul, ol {
	overflow: hidden;
}
</pre>
<p>Use <strong>overflow:hidden</strong> on your <strong>ul</strong> and <strong>ol</strong> tags. This will stop your lists from flowing around images too, but that&#8217;s probably a good thing because a list flowing around an image isn&#8217;t every pleasing to the eyes.</p>
<h2>Getting it to work in IE6</h2>
<p>You didn&#8217;t think you were finished did you? When I did the redesign for ianhoar.com I really wasn&#8217;t sure if I would support Internet Explorer 6 at all, but in the end I decided that if I still have to support it on my professional projects then my blog should probably support this truly awful browser too.</p>
<p>The IE6 fix is a <strong>zoom:1</strong> declaration. Unfortunately the zoom declaration is not valid CSS. You can get around this by creating a second CSS file called ie.css and use conditional comments when linking the file.</p>
<pre>ul, ol {
	zoom:1;
}
</pre>
<h2>And the CSS conditional</h2>
<pre>&lt;!--[if IE 6]&gt;
	&lt;link rel="stylesheet" href="ie.css" mce_href="ie.css" type="text/css" media="all" /&gt;
&lt;![endif]--&gt;
</pre>
<p>Your lists should look a lot nicer now when situated next to floated images or other floated elements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2010/05/24/lists-and-floated-images-without-overlap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>15 Awesome web design &amp; development sites you should know about</title>
		<link>http://www.ianhoar.com/2010/05/22/15-awesome-web-design-development-sites-you-should-know-about/</link>
		<comments>http://www.ianhoar.com/2010/05/22/15-awesome-web-design-development-sites-you-should-know-about/#comments</comments>
		<pubDate>Sat, 22 May 2010 23:05:26 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3774</guid>
		<description><![CDATA[This is a small list of invaluable websites I use to further my knowledge of everything web and to help out with inspiration, tools, resources and tutorials. It&#8217;s a list not aimed at any one facet of web design and development, but the many facets and processes that make a website possible. It is becoming [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-3930" title="Top Sites" src="http://www.ianhoar.com/wp-content/uploads/2010/05/top_sites.jpg" alt="Top Sites" width="200" height="268" />This is a small list of invaluable websites I use to further my knowledge of everything web and to help out with inspiration, tools, resources and tutorials. It&#8217;s a list not aimed at any one facet of web design and development, but the many facets and processes that make a website possible.</p>
<p>It is becoming more and more important to at least have a basic understanding of all the information that goes into making a fantastic website. Knowing limitations and pushing those limits makes web design and development fun, interesting, and challenging. If you work in this field you probably already know that web work is all about constantly learning new technologies, tools, tips and tricks.</p>
<p><span id="more-3774"></span></p>
<h2><a href="http://www.smashingmagazine.com">Smashing Magazine</a></h2>
<p><a href="http://www.smashingmagazine.com"><img class="size-full wp-image-3911 alignnone" title="Smashing Magazine" src="http://www.ianhoar.com/wp-content/uploads/2010/05/smashing_magazine.jpg" alt="Smashing Magazine" width="710" height="207" /></a></p>
<p>If you don&#8217;t know about this one then you have been missing out. While there is some fluff from time to time, you learn a lot from this site. There are a lot of top website and tools lists which can get tedious, but Smashing Magazine really does have the pulse of the web and this is the spot to be if you want to keep up to date on web trends. Some of their most popular posts are actually their trend posts. Critics will say that Smashing causes everyone to create the same type of designs, but I think it&#8217;s good to know what is working out there and what is not.</p>
<div class="callout"><strong>Focus: Tutorials, Everything web</strong><a href="http://www.smashingmagazine.com"><br />
www.smashingmagazine.com</a></div>
<h2><a href="http://www.noupe.com">Noupe</a></h2>
<p><a href="http://www.noupe.com"><img class="alignnone size-full wp-image-3912" title="Noupe" src="http://www.ianhoar.com/wp-content/uploads/2010/05/noupe.png" alt="Noupe" width="620" height="156" /></a></p>
<p>Noupe is part of the Smashing network. It has a huge amount inspirational lists and resources. When you need a break from work or if you are feeling creatively drained it can be a great quick stop for a creative inspirational recharge.</p>
<div class="callout"><strong>Focus: Inspiration, Resources</strong><br />
<a href="http://www.noupe.com">www.noupe.com</a></div>
<h2><a href="http://www.grafpedia.com/">Grafpedia</a></h2>
<p><a href="http://www.grafpedia.com/"><img class="alignnone size-full wp-image-3913" title="Grafpedia" src="http://www.ianhoar.com/wp-content/uploads/2010/05/grafpedia.jpg" alt="Grafpedia" width="585" height="160" /></a></p>
<p>Grafpedia is the holy grail of Photoshop web design tutorials. The site sells their templates, but the real guts of the site is the full on tutorials. You can create all of their PSD templates by following their extremely detailed tutorials. Most of us won&#8217;t want to do that of course, but browsing the designs until you see something that makes you say &#8220;how did they do that&#8221; and then getting a detailed play by play tutorial on just that question is pretty cool. A fantastic resource for Photoshop web design techniques. Also a great place to start if you are completely new to creating Photoshop mockups.</p>
<div class="callout"><strong>Focus: Photoshop Web Mockups, Design</strong><br />
<a href="http://www.grafpedia.com/">www.grafpedia.com</a></div>
<h2><a href="http://www.problogger.net">ProBlogger</a></h2>
<p><a href="http://www.problogger.net"><img class="alignnone size-full wp-image-3914" title="ProBlogger" src="http://www.ianhoar.com/wp-content/uploads/2010/05/pro_blogger.png" alt="ProBlogger" width="482" height="141" /></a></p>
<p>If you are a blogger, you should be reading this guys stuff. I started reading ProBlogger about two years ago. Some of the subject matter may be obvious for the more advanced bloggers, but you&#8217;ll probably gain new insights regardless of your skill level. Once you digest a lot of Darren&#8217;s site it does start to feel a bit regurgitated, but a quick visit every now and then always reveals something new for me. He also does a lot of his own tests and research on analytics and SEO. Problogger is also very professional and way less spamy than a lot of the get rich quick blogging tip sites out there.</p>
<div class="callout"><strong>Focus: Blogging, Writing, SEO, Monetization</strong><br />
<a href="http://www.problogger.net">www.problogger.net</a></div>
<h2><a href="http://ajaxian.com/">Ajaxian</a></h2>
<p><a href="http://ajaxian.com/"><img class="alignnone size-full wp-image-3915" title="Ajaxian" src="http://www.ianhoar.com/wp-content/uploads/2010/05/ajaxian.png" alt="Ajaxian" width="471" height="131" /></a></p>
<p>Ajaxian is for the more technically minded web designers and developers out there. As the name suggests they follow a lot of Ajax techniques, but the site has much more to offer than news about Ajax. If you want to know where the future of Web Apps are headed, this is a good starting point. Even if you are not a programmer, there&#8217;s a lot of cool bleeding edge stuff to see on this site.</p>
<div class="callout"><strong>Focus: Programming, Web Apps</strong><a href="http://ajaxian.com/"><br />
ajaxian.com</a></div>
<h2><a href="http://browserlab.adobe.com/">Adobe BrowserLab</a></h2>
<p><a href="http://browserlab.adobe.com/"><img class="alignnone size-full wp-image-3928" title="Adobe BrowserLab" src="http://www.ianhoar.com/wp-content/uploads/2010/05/adobe_browser_lab.jpg" alt="Adobe BrowserLab" width="507" height="180" /></a></p>
<p>The best way to really test your websites is with the actual browser, usually via a virtual machine. Not everyone has time to install a load of browsers under virtual machines and if you don&#8217;t need to test the functionality then Adobe BrowserLab is the answer to your testing needs. The layout is slick and easy to use. You can select all the browser you want to test with and save them. The site then quickly renders image screenshots of all the browsers you selected. The next time you need to test out good old IE6 or some other hard to find browser version, give it a try.</p>
<p><strong>Focus: Cross-browser testing</strong><a href="http://browserlab.adobe.com/"><br />
browserlab.adobe.com</a></p>
<h2><a href="http://www.webdesignerwall.com/">Web Designer Wall</a></h2>
<p><a href="http://www.webdesignerwall.com/"><img class="alignnone size-full wp-image-3917" title="Web Designer Wall" src="http://www.ianhoar.com/wp-content/uploads/2010/05/web_designer_wall.jpg" alt="Web Designer Wall" width="710" height="128" /></a></p>
<p>&#8220;A wall of design ideas, web trends, and tutorials.&#8221; This is another personal blog with a broad range of web design content. Tutorials, news, funky design techniques and everything in between. There&#8217;s a lot of content here and this guy posts often.</p>
<div class="callout"><strong>Focus: Tutorials, Web Design</strong><a href="http://www.webdesignerwall.com/"><br />
www.webdesignerwall.com</a></div>
<h2><a href="http://www.problogdesign.com">Pro Blog Design</a></h2>
<p><a href="http://www.problogdesign.com"><img class="alignnone size-full wp-image-3918" title="Pro Blog Design" src="http://www.ianhoar.com/wp-content/uploads/2010/05/pro_blog_design.jpg" alt="Pro Blog Design" width="490" height="217" /></a></p>
<p>This site has been around for a few years, but it only recently hit my radar. The focus is on web design with an emphasis on blogs. It&#8217;s got some fantastic tutorials and a lot of discussion.</p>
<div class="callout"><strong>Focus: Blogs, WordPress</strong><a href="http://www.problogdesign.com"><br />
www.problogdesign.com</a></div>
<h2><a href="http://www.webkitbits.com">WebKitBits</a></h2>
<p><a href="http://www.webkitbits.com"><img class="alignnone size-full wp-image-3919" title="WebKitBits" src="http://www.ianhoar.com/wp-content/uploads/2010/05/web_kit_bits.jpg" alt="WebKitBits" width="710" height="130" /></a></p>
<p>I recently discovered this gem of a site and it&#8217;s quickly becoming a favourite. WebKitBits is all about really cool projects done using the power of the Webkit rendering engine. Webkit is the browser engine built into Safari, Chrome, iPhone, Palm Pre, and Android, and it&#8217;s pretty awesome. This engine blows away Internet Explorer and even gives Gecko a run for it&#8217;s money. The stuff here is bleeding edge and some of it possibly years away before we see it in mainstream websites, but it will reignite you passion for everything web and you will be ready for the next wave of awesome.</p>
<div class="callout"><strong>Focus: Webkit Engine</strong><a href="http://www.webkitbits.com/"><br />
www.webkitbits.com</a></div>
<h2><a href="http://www.learningjquery.com/">Learning jQuery</a></h2>
<p><a href="http://www.learningjquery.com/"><img class="alignnone size-full wp-image-3920" title="Learning jQuery" src="http://www.ianhoar.com/wp-content/uploads/2010/05/learning_jquery.jpg" alt="Learning jQuery" width="505" height="118" /></a></p>
<p>jQuery should need no introduction by now and should be in every web designers arsenal. I would be lost without it or at least spending many more hours on my scripting. It&#8217;s the JavaScript framework library that went from &#8220;jWhat?&#8221; to &#8220;oh yeah, that&#8217;s easy we can do it with jQuery&#8221;. If you&#8217;re looking for people who know jQuery like the back of their hand, then this is the site for you as the authors share tips, techniques and tutorials and have written fantastic books on jQuery too.</p>
<div class="callout"><strong>Focus: jQuery</strong><a href="http://www.learningjquery.com/"><br />
www.learningjquery.com</a></div>
<h2><a href="http://www.brushking.eu/">BrushKing</a></h2>
<p><a href="http://www.brushking.eu/"><img class="alignnone size-full wp-image-3922" title="Brush King" src="http://www.ianhoar.com/wp-content/uploads/2010/05/brush_king.jpg" alt="Brush King" width="341" height="143" /></a></p>
<p>While not exactly a web design focused site this is still a must see for web designers. It&#8217;s a Photoshop brush site with loads of free brushes. There&#8217;s always that one brush that you can plop into a web page and just add that little bit of extra wow. The quality of most of the brushes is stunning.</p>
<div class="callout"><strong>Focus: Photoshop Brushes</strong><a href="http://www.brushking.eu/"><br />
www.brushking.eu</a></div>
<h2><a href="http://webdesignledger.com/">Web Design Ledger</a></h2>
<p><a href="http://webdesignledger.com/"><img class="alignnone size-full wp-image-3923" title="WDL" src="http://www.ianhoar.com/wp-content/uploads/2010/05/wdl.jpg" alt="WDL" width="401" height="169" /></a></p>
<p>Web Design Ledger or WDL for short is a web design knowledge and resources site. It&#8217;s another one of those fully loaded blogs that you can absorb information and inspiration from for hours. If you need a break from Smashing Magazine, check out Web Design Ledger.</p>
<div class="callout"><strong>Focus: Everything Web</strong><a href="http://webdesignledger.com/"><br />
webdesignledger.com</a></div>
<h2><a href="http://www.colourlovers.com/">COLOURlovers</a></h2>
<p><a href="http://www.colourlovers.com/"><img class="alignnone size-full wp-image-3924" title="Colour Lovers" src="http://www.ianhoar.com/wp-content/uploads/2010/05/colour_lovers.png" alt="Colour Lovers" width="677" height="98" /></a></p>
<p>Colour is so important, and COLOURlovers have got it covered. It&#8217;s basically a social media colour palette sharing site. Users share their colours, palettes, patterns and trends with the COLOURlovers community. The site is a great first step in the early design phase. They also oddly spell Colour correctly and incorrectly throughout the site.</p>
<div class="callout"><strong>Focus: Colour, Palettes, Patters</strong><a href="http://www.colourlovers.com/"><br />
www.colourlovers.com</a></div>
<h2><a href="http://net.tutsplus.com/">Nettuts +</a></h2>
<p><a href="http://net.tutsplus.com/"><img class="alignnone size-full wp-image-3925" title="Nettuts+" src="http://www.ianhoar.com/wp-content/uploads/2010/05/net_tuts_plus.jpg" alt="Nettuts+" width="710" height="121" /></a></p>
<p>This is another one of those massive resource sites out there that offers free content and premium content. Nettuts + is only part of their huge tutorial network. If you need information on a topic or just want to get exposed to new techniques and ideas than this is the place to go.</p>
<div class="callout"><strong>Focus: Everything Web</strong><a href="http://net.tutsplus.com/"><br />
net.tutsplus.com</a></div>
<h2><a href="http://www.alistapart.com/">A List Apart</a></h2>
<p><a href="http://www.alistapart.com/"><img class="alignnone size-full wp-image-3926" title="A List Apart" src="http://www.ianhoar.com/wp-content/uploads/2010/05/a_list_apart.png" alt="A List Apart" width="710" height="255" /></a></p>
<p>This list would not be complete without A List Apart. I my opinion this site is the de facto authority on best web practices and techniques. Many of the well known techniques used today originated on A List Apart. Although they don&#8217;t post near as much as some of the other sites listed here, the content is almost always top notch. The topics cover code, content, culture, design, process and user science. A lot of well known industry leaders and thinkers have written for A List Apart.</p>
<div class="callout"><strong>Focus: Everything Web</strong><a href="http://www.alistapart.com/"><br />
www.alistapart.com</a></div>
<h2>Did I miss something?</h2>
<p>If you think there is some awesome super duper resource that is missing from this list including your own site, please don&#8217;t hesitate to post it below in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2010/05/22/15-awesome-web-design-development-sites-you-should-know-about/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS tip, declare your font family once</title>
		<link>http://www.ianhoar.com/2009/10/01/css-tip-declare-your-font-family-once/</link>
		<comments>http://www.ianhoar.com/2009/10/01/css-tip-declare-your-font-family-once/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 21:47:11 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3630</guid>
		<description><![CDATA[Here&#8217;s a CSS tip that I wish more people would follow. When setting up a font on your site, say Verdana, there is no reason to declare it on every H tag, P tag and class you are using. Throw it up in the body and be done with it. The same goes for font [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a <abbr title="Cascading Style Sheets">CSS</abbr> tip that I wish more people would follow. When setting up a font on your site, say Verdana, there is no reason to declare it on every H tag, P tag and class you are using. Throw it up in the body and be done with it. The same goes for font sizes, colours and anything else that will be uniform across the site. Once you have done this you can override it for specific tags and classes when you need too.</p>
<pre>body {
	font-family:Verdana, Arial, sans-serif;
	font-size:12px;
	margin:0;
	line-height:130%;
	color:#333333;
}</pre>
<p>This will make your life easier and everyone else who has to work with your files will thank you. I think we should always be looking for ways to make our CSS smaller, cleaner and easier to read.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2009/10/01/css-tip-declare-your-font-family-once/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Space below images in Firefox and email newsletters</title>
		<link>http://www.ianhoar.com/2009/08/13/space-below-images-in-firefox-and-email-newsletters/</link>
		<comments>http://www.ianhoar.com/2009/08/13/space-below-images-in-firefox-and-email-newsletters/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 03:26:29 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[email newsletters]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3603</guid>
		<description><![CDATA[One thing that is consistently presented to me by other web designers and users is space below images and usually in Firefox, but it can also happen in email newsletters. You will usually notice it when you need images to vertically butt up against each other. This results in a white line or whatever the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-229 thumbleft" title="Firefox" src="http://www.ianhoar.com/wp-content/uploads/2008/06/firefox.jpg" alt="Firefox" width="150" height="145" />One thing that is consistently presented to me by other web designers and users is space below images and usually in Firefox, but it can also happen in email newsletters. You will usually notice it when you need images to vertically butt up against each other. This results in a white line or whatever the background colour is set too appearing between two vertically stacked images. Fear not, the fix is extremely easy and you have two good options.</p>
<p><span id="more-3603"></span></p>
<h2>Display block and line height</h2>
<p>The first option is to use a display block on the images causing the problem. The reason you have this space below images in the first place is because images are inline elements. This means Firefox is reserving space below the image for descenders. A descender is the text in some lower case letters that extends below the baseline of the font. This occurs in letters like g and p. Changing your images to block removes this reserved space because a block level element is not treated the same way as an inline element.</p>
<p>This fix will not always be good enough as you may need images to line up horizontally. Changing images to block level elements will cause a break after each image. You could try floating them, but an easier way would be to set the line height. Give the container element a line-height of 0.1 em. Using this method will remove your spacing issues, but remember that you can only use images in this container. Using text will obviously have undesirable results.</p>
<h2>Examples</h2>
<p><strong>Block method</strong>:</p>
<pre>.containerDiv img {
     display:block;
}</pre>
<p><strong>Line height method:</strong></p>
<pre>.containerDiv img {
     line-height:0.1em;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2009/08/13/space-below-images-in-firefox-and-email-newsletters/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Facebook Development: breaking the application canvas with iFrames</title>
		<link>http://www.ianhoar.com/2009/05/18/facebook-development-breaking-the-application-canvas-with-iframes/</link>
		<comments>http://www.ianhoar.com/2009/05/18/facebook-development-breaking-the-application-canvas-with-iframes/#comments</comments>
		<pubDate>Tue, 19 May 2009 03:04:48 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3576</guid>
		<description><![CDATA[I recently started developing an application on Facebook. It&#8217;s actually quite interesting although the Facebook developer interface leaves a lot to be desired. If a chat program operated the way Facebook does it would go something like this. To add a user you must first add the addUser application. Once this is completed you can [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-2079 alignleft" title="Facebook" src="http://www.ianhoar.com/wp-content/uploads/2008/09/facebook.png" alt="Facebook" width="200" height="75" />I recently started developing an application on Facebook. It&#8217;s actually quite interesting although the Facebook developer interface leaves a lot to be desired. If a chat program operated the way Facebook does it would go something like this. To add a user you must first add the addUser application. Once this is completed you can add the first use through the addUser applications, but after that you must go to the first added user to add an additional user, it&#8217;s really a&#8230; but I digress. This post is about Facebook&#8217;s application canvas and specifically developing applications with the iframe option enabled.</p>
<p><span id="more-3576"></span></p>
<p>In Internet Explorer (of course) you will lose the Facebook interface whenever a user clicks a link or submits a form. This drove me crazy, because an iframe was the only way for me to access the database on the server I was using. The solution was remarkably easy. It&#8217;s a header you can add to the top of your app.</p>
<pre>"p3p", "CP=\"CAO PSA OUR\""</pre>
<p>In PHP it looks like this.</p>
<pre>header("p3p: CP=\"CAO PSA OUR\"");</pre>
<p><strong>More information can be found on the Facebook Developer forums.</strong></p>
<ul>
<li><a href="http://forum.developers.facebook.com/viewtopic.php?pid=58802">Breaking the Facebook canvas iframe in IE</a>.</li>
<li>iframe applications and P3P HTTP headers, <a href="http://forum.developers.facebook.com/viewtopic.php?id=452">&#8220;why make sure to implement P3P if using iframes?&#8221;</a> cookies and session will not work in some browsers.<a href="http://forum.developers.facebook.com/viewtopic.php?id=452"><br />
</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2009/05/18/facebook-development-breaking-the-application-canvas-with-iframes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Outlook 2007, inline styles, and links</title>
		<link>http://www.ianhoar.com/2008/12/06/outlook-2007-inline-styles-and-links/</link>
		<comments>http://www.ianhoar.com/2008/12/06/outlook-2007-inline-styles-and-links/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 18:04:56 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Frustration]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3396</guid>
		<description><![CDATA[I recently discovered yet another weird Outlook 2007 bug with email newsletters. Every web designer has probably gone through the nightmare of Internet Explorer and then tried to explain to non-web people why it just plain sucks. Outlook 2007 raises the bar to a whole new level of awfulness, but enough with the ranting. If [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-3397 thumbRight" title="Outlook 2007" src="http://www.ianhoar.com/wp-content/uploads/2008/12/outlook_2007.jpg" alt="" width="150" height="147" />I recently discovered yet another weird Outlook 2007 bug with email newsletters. Every web designer has probably gone through the nightmare of Internet Explorer and then tried to explain to non-web people why it just plain sucks. Outlook 2007 raises the bar to a whole new level of awfulness, but enough with the ranting.</p>
<p><span id="more-3396"></span></p>
<p>If you have been making email newsletters that work in the majority of email clients out there you already know this; if you want your work to display the way you intended in web based and stand alone email clients then you have to use inline styles and tables, and a lot of them. You would also be wise to ignore any modern CSS, because most of it won&#8217;t work. Inline styles work well for email clients that strip out all the embedded styles like Hotmail (also a Microsoft product). Hotmail has come a long way over the past 4 years, but unfortunately Outlook took several steps back when someone came up with the brilliant idea of using Word as the email render engine. Previous versions of Outlook are much easier to support. </p>
<h2>I&#8217;ve done everything right, why are my links turning purple when clicked!</h2>
<p>So you have your inline styles set up everywhere including on your links, but when you send out your deployment the links turn purple when clicked in Outlook 2007. This is Outlook ignoring your inline styles and applying the default link colour for visited links. If you have an embedded style at the top of the page, it will respect those. I had stopped using embedded styles all together since inline styles were much more reliable. The fix for this is to add your link styles back in the embedded style at the top of the page inside the head of your markup.</p>
<pre>&lt;style media="all" type="text/css"&gt;
a:link, a:visited {
     color:#64698c;
     text-decoration:none;
}
.sideBar a:link, .sideBar a:visited {
     color:#893d00;
     text-decoration:underline;
}
&lt;/style&gt;</pre>
<p>In this example all link styles are set to a specific colour and the second style sets a different set of colours for links within a sidebar class. All you really need to fix your Outlook link woes is the a:visited declaration, but it can&#8217;t hurt to add the links in there too.</p>
<h2>Inline styles are still king with email</h2>
<p>Remember, dont&#8217; get rid of your inline styles. One of the reasons I got rid of my embedded styles is because I could not tell when I was missing an inline style. This is a real pain for links, because using this fix will show your links as the right colour while working on the email. If you or others use editors to work on your HTML they will not add inline styles, so you must always remember to add them after. Again, the down side with this fix is now you cannot see which links you have missed. At the time of writing Gmail still strips out the embedded link styles and I&#8217;m sure a few other clients still do this too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2008/12/06/outlook-2007-inline-styles-and-links/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Internet Explorer 6 and redirected anchor links</title>
		<link>http://www.ianhoar.com/2008/11/16/internet-explorer-6-and-redirected-anchor-links/</link>
		<comments>http://www.ianhoar.com/2008/11/16/internet-explorer-6-and-redirected-anchor-links/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 21:25:39 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Frustration]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[ie6]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=3224</guid>
		<description><![CDATA[Why are my are my anchor links not working in IE6? As a web designer I constantly run into browser bugs and 90% of these bugs belong to either IE6 or IE7. Remarkably these two browsers don&#8217;t even consistently break the same way. What is messed up in IE6 may be completely messed up in [...]]]></description>
			<content:encoded><![CDATA[<h2><img class="alignleft size-full wp-image-110 thumbRight" title="Internet Explorer" src="http://blog.imhmedia.net/wp-content/uploads/2008/03/ie.jpg" alt="" width="150" height="144" />Why are my are my anchor links not working in IE6?</h2>
<p>As a web designer I constantly run into browser bugs and 90% of these bugs belong to either IE6 or IE7. Remarkably these two browsers don&#8217;t even consistently break the same way. What is messed up in IE6 may be completely messed up in a different way in IE7. The standards compliant WebKit and Gecko engines used by popular browsers like FireFox, Safari and Chrome rarely see many of these annoying bugs, but the masses use IE, so we as designers and developers must make them work.</p>
<p><span id="more-3224"></span></p>
<p>Fixing these bugs usually requires a lot of head scratching and pounding of fists and Google searches until I figure out a work around or hack that will fix it. I may not run across said bug for several months or even a year or more and then inevitably I stumble across the same bug and of course not realizing it is one I have dealt in the past. The IE6 redirect bug is one of those nasty ones that has caused me much pain and suffering, and it&#8217;s very simple to fix, although sometimes remembering the fix can take precious time, so I thought this time I would write it down and share it with others.</p>
<p>An anchor link, sometimes called a jump link, is pretty straight forward HTML, so you would think IE would have no problems with it. You would be wrong though, very wrong.</p>
<pre>&lt;a href="http://www.sitename.com/yourPage.html#AnchorName"&gt;Link to anchor on page&lt;/a&gt;</pre>
<p><strong>Within yourPage.html you have an anchor</strong></p>
<pre>&lt;a name="AnchorName"&gt;&lt;/a&gt;</pre>
<h2>This is where it all went wrong</h2>
<p>Under most circumstances this will work just fine, even in old clunky IE6, but where it won&#8217;t work is when there is a redirect involved. My issue started with an anchor link from an email campaign. This link would be clicked from an email client and then sent on to the email deployment platform, where it would then be redirected to the actual page. From here a nasty 404 would pop up. This is what threw me, because usually redirecting an anchor link in IE6 will only result in the anchor not working, but the page still loads fine.</p>
<h2>The fix</h2>
<p>The fix is quite simple if you can remember it the next time this happens to you.</p>
<pre>&lt;a href="http://www.sitename.com/yourPage.html&amp;#AnchorName"&gt;Link to anchor on page&lt;/a&gt;</pre>
<p>See the difference? No? Check out the little <strong>ampersand &#8220;&amp;&#8221;</strong> at the end of the html file and before the <strong>pound &#8220;#&#8221;</strong>. This will fix your broken anchor links in IE6 and they will now jump to where they are supposed to go.</p>
<p>My issue was a little more dire since the anchor links were actually breaking the page and giving a 404 error. We probably could have just ignored the issue if the jumping was the only thing broken. I think the reason for this is IE6 must parse the URL incorrectly when being redirected and ignore pound sign &#8220;#&#8221;. My page was a PHP file and contained a query string:</p>
<pre>yourPage.php&amp;var1=foo&amp;var2=bar#AnchoreName</pre>
<p>The last <strong>var2</strong> was interpreted as <strong>bar#AnchoreName</strong> instead of <strong>bar</strong>. An ampersand &#8220;&amp;&#8221; fixed this issue also. IE6 and IE7 never cease to amaze me with how badly they interprets the HTML and CSS specs. This particular bug is only an issue in IE6. I hope this saves some people a bit of sanity.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2008/11/16/internet-explorer-6-and-redirected-anchor-links/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Gravatars, what are they and how do I get one?</title>
		<link>http://www.ianhoar.com/2008/07/20/gravatars-what-are-they-and-how-do-i-get-one/</link>
		<comments>http://www.ianhoar.com/2008/07/20/gravatars-what-are-they-and-how-do-i-get-one/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 23:55:17 +0000</pubDate>
		<dc:creator>Ian Hoar</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.ianhoar.com/?p=315</guid>
		<description><![CDATA[A few days ago I added Gravatar functionality to my blog. A Gravatar is a unique picture or icon of yourself which is stored online and globally accessible by blogs that implement Gravatar, or globally recognized avatar. When you post or comment to Gravatar enabled blogs your own avatar will show up on that blog [...]]]></description>
			<content:encoded><![CDATA[<p><img class="thumbRight" title="Gravitar Logo" src="http://www.ianhoar.com/wp-content/uploads/2008/07/gravitar_logo.gif" alt="Gravitar Logo" width="69" height="80" />A few days ago I added Gravatar functionality to my blog. A Gravatar is a unique picture or icon of yourself which is stored online and globally accessible by blogs that implement Gravatar, or <strong>g</strong>lobally <strong>r</strong>ecognized <strong>avatar</strong>. When you post or comment to Gravatar enabled blogs your own avatar will show up on that blog if you have signed up for one on <a href="http://www.gravatar.com/">the Gravatar site</a>. It&#8217;s a nice way of making your posts more unique and personalized.</p>
<p><span id="more-315"></span></p>
<p><img class="thumbRight" title="Gravitar" src="http://www.ianhoar.com/wp-content/uploads/2008/07/gravitar.png" alt="Gravitar" width="40" height="40" />The other great news is that if you have been posting to a lot of blogs with the same email address and they have Gravatar functionality set up, all your old posts will be updated with your personal Gravatar when you sign up for one. Also, if you have posted to a blog without Gravatars and they add the that functionality in the future, your old posts will then show up with your Gravatar.</p>
<h2>How does it work?</h2>
<p>Gravatars work by passing a few parameters through the URL to the Gravatar website. You tell the site what you are looking for, send an encrypted email address via MD5 hash along with size, default icon location and border colour. Some of these parameters are optional.</p>
<p><strong>Example Gravatar URL</strong></p>
<pre>http://www.gravatar.com/avatar.php?gravatar_id=b205b058e095597f982a65a1134a89cc&amp;rating=R&amp;size=40&amp;default=http%3A%2F%2Fwww.ianhoar.com%2Fwp-content%2Fthemes%2Fian_v2%2Fimages%2Fgravatar_default.gif</pre>
<p>For people wanting to add Gravatars to their own blog it&#8217;s extremely easy with WordPress. There are several ways you can do this. WordPress 2.5 has Gravatar functionality built in by default. You can find out more about this on the <a href="http://codex.wordpress.org/Using_Gravatars">WordPress Codex</a>. There are also several plugins that will accomplish this including <a href="http://en.gravatar.com/site/implement/wordpress">the official Gravatar WordPress plugin</a>, which is the method I prefer over the built in WordPress functionality and will discuss below.</p>
<p>The reason I like the Gravatar plugin over the default WordPress support is that I find it more flexible. I can use my own image html and use my own CSS class and alt tag right in the HTML theme template. The WordPress Gravatar support generates the image HTML for you automatically and you can use the included class to style it.</p>
<h2>Using the WordPress Gravatar Plugin</h2>
<pre>&lt;img src="&lt;?php gravatar("R", 40, "http://www.ianhoar.com/gravatar_default.gif"); ?&gt;" class="gravatar" alt="&lt;?php comment_author(); ?&gt;" /&gt;</pre>
<ul>
<li>The first parameter in the <strong>gravatar()</strong> function sets your rating. Gravatars have G, PG, R and X ratings. This setting allows you to set what kind of avatars you want to allow on your blog.</li>
<li>The second parameter sets your size. In this case 40 x 40 pixels (the default is 80 x 80 pixels).</li>
<li>The third sets the path for a default avatar if a user does not have a Gravatar.</li>
<li>There is also a fourth parameter that allows you to set a 1px colour boarder. I prefer to use a custom class for this within the image markup itself.</li>
<li>I&#8217;ve also set the users name as the alt tag for each Gravatar with the <strong>comment_author()</strong> function.</li>
</ul>
<h2>What if I don&#8217;t have WordPress?</h2>
<p>You are probably in luck, the Gravatar website has detailed instructions on the Gravatar URL and other plugins for several blogging platforms. You can find a complete list in the <a href="http://en.gravatar.com/site/implement">Gravatar implementor&#8217;s guide</a>.</p>
<p>Scroll down to see my first comment on this article and you will see my Gravatar in action. If you are a blog reader and you post a lot, why not <a href="http://www.gravatar.com/">get your own Gravatar today</a>? Feel free to come back here and try it out in the comments section below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ianhoar.com/2008/07/20/gravatars-what-are-they-and-how-do-i-get-one/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
