<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Search-This</title>
	
	<link>http://www.search-this.com</link>
	<description>Internet Marketing, Website Promotion and Blogging Advice</description>
	<pubDate>Mon, 03 Nov 2008 17:54:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/search-this" type="application/rss+xml" /><feedburner:emailServiceId>655437</feedburner:emailServiceId><feedburner:feedburnerHostname>http://www.feedburner.com</feedburner:feedburnerHostname><item>
		<title>Lijit’s Integration with WordPress</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/441209339/</link>
		<comments>http://www.search-this.com/2008/11/03/lijits-integration-with-wordpress/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 17:54:46 +0000</pubDate>
		<dc:creator>Golgotha</dc:creator>
		
		<category><![CDATA[Website Design]]></category>

		<category><![CDATA[Website Tools]]></category>

		<category><![CDATA[lijit]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=732</guid>
		<description><![CDATA[
I spoke to you back in January about Lijit. Remember I showed you that Lijit allows you to easily create your own search engine. One that searches your blog, bookmarks, photos, blogroll, and more. 
I really liked Lijit then but I was disappointed that I couldn&#8217;t integrate the Lijit search functionality into WordPress. That is [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.search-this.com/wp-content/uploads/2007/12/lijit.png' alt='lijit.png' align='left' style='padding-right:10px' width='179' height='128' /></p>
<p>I spoke to you back in January about <a href="http://www.search-this.com/2008/01/02/lijit-is-cool/">Lijit</a>. Remember I showed you that Lijit allows you to easily create your own search engine. One that searches your blog, bookmarks, photos, blogroll, and more. </p>
<p>I really liked Lijit then but I was disappointed that I couldn&#8217;t integrate the Lijit search functionality into WordPress. That is let Lijit take over my search box that was already there and is ALREADY there in just about every other blog too. Instead you had to put a widget on your page. I felt like this was such a mistake I actually went to visit Lijit in Boulder and told them so. Well I&#8217;m happy to say that they have listened and now allow you to let their search take over your search box. Here&#8217;s what they say:</p>
<blockquote><p>Lijit&#8217;s integration with WordPress.org just keeps getting better! Now you can either install the Lijit Search widget OR have Lijit power your existing WordPress search box. As if that weren’t exciting enough, our Lijit stats will automatically display within your WordPress dashboard for one-stop stats viewing too.
</p></blockquote>
<p>Go ahead and have a look, try the search located in the top left corner&#8230;.</p>
<p>If you like it you can find the <a href="http://wordpress.org/extend/plugins/wp-lijit-wijit/">Lijit WordPress plugin here</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=QHHnN"><img src="http://feeds.feedburner.com/~f/search-this?i=QHHnN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=B4Qyn"><img src="http://feeds.feedburner.com/~f/search-this?i=B4Qyn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=kNf2N"><img src="http://feeds.feedburner.com/~f/search-this?i=kNf2N" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=6MLyN"><img src="http://feeds.feedburner.com/~f/search-this?i=6MLyN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=zXkUn"><img src="http://feeds.feedburner.com/~f/search-this?i=zXkUn" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=ip38n"><img src="http://feeds.feedburner.com/~f/search-this?i=ip38n" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=GP2rN"><img src="http://feeds.feedburner.com/~f/search-this?i=GP2rN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=xSb3N"><img src="http://feeds.feedburner.com/~f/search-this?i=xSb3N" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/11/03/lijits-integration-with-wordpress/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/11/03/lijits-integration-with-wordpress/</feedburner:origLink></item>
		<item>
		<title>Free Reference Sheets</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/434279549/</link>
		<comments>http://www.search-this.com/2008/10/27/free-reference-sheets/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 03:28:30 +0000</pubDate>
		<dc:creator>Golgotha</dc:creator>
		
		<category><![CDATA[Website Tools]]></category>

		<category><![CDATA[reference sheets]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=735</guid>
		<description><![CDATA[Thanks to the people over at DZone for creating free cheat sheets for developers. They have created some really nice reference sheets for just about everything web related: Ajax, C#, ASP.NET, Springs, PHP, Java, Struts, IntelliJ IDEA, Design Patterns, jQuery Selectors, CSS and many more.
Each sheet is done by a respected professional in that discipline [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.search-this.com/wp-content/uploads/2008/10/5358.png" alt="" title="Reference Sheet" width="206" height="266" class="alignleft size-full wp-image-737" style="padding-right:8px;" />Thanks to the people over at <a href="http://www.dzone.com/links/index.html">DZone</a> for creating <strong><a href="http://refcardz.dzone.com/">free cheat sheets for developers</a></strong>. They have created some really nice reference sheets for just about everything web related: Ajax, C#, ASP.NET, Springs, PHP, Java, Struts, IntelliJ IDEA, Design Patterns, jQuery Selectors, CSS and many more.</p>
<p>Each sheet is done by a respected professional in that discipline &#8212; Jon Skeet, author of <em>C# in Depth</em> did the C# sheet and Molly Holzschlag, author of <em>The Zen of CSS Design</em> did the CSS sheet. Of course these sheets aren&#8217;t intended to teach you, but simply there to aid you in those things that you usually end up looking up. </p>
<p>So far I have downloaded the C#, ASP.NET and jQuery sheets. They&#8217;re handy and they&#8217;re free, what else do you need to know than that. Enjoy.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=vpfuM"><img src="http://feeds.feedburner.com/~f/search-this?i=vpfuM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=iz24m"><img src="http://feeds.feedburner.com/~f/search-this?i=iz24m" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=Z6EpM"><img src="http://feeds.feedburner.com/~f/search-this?i=Z6EpM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=Vi2CM"><img src="http://feeds.feedburner.com/~f/search-this?i=Vi2CM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=sOYMm"><img src="http://feeds.feedburner.com/~f/search-this?i=sOYMm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=4cubm"><img src="http://feeds.feedburner.com/~f/search-this?i=4cubm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=rKFGM"><img src="http://feeds.feedburner.com/~f/search-this?i=rKFGM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=1nQOM"><img src="http://feeds.feedburner.com/~f/search-this?i=1nQOM" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/10/27/free-reference-sheets/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/10/27/free-reference-sheets/</feedburner:origLink></item>
		<item>
		<title>New Job at a Web Dev Agency!</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/428732132/</link>
		<comments>http://www.search-this.com/2008/10/22/new-job-at-a-web-dev-agency/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 16:51:45 +0000</pubDate>
		<dc:creator>Golgotha</dc:creator>
		
		<category><![CDATA[Search Engine Optimization]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=733</guid>
		<description><![CDATA[
After seven years of being a software developer I have finally done it - I&#8217;ve joined a web agency! On November 3rd I will be joining Malenke &#124; Barnhart here in Denver. I&#8217;m pretty excited about it. It looks like a real fun place to work, Xbox 360 on down time, dress however you want [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.search-this.com/wp-content/uploads/2008/10/mb.jpg" alt="" title="MB" width="243" height="154" class="alignleft size-full wp-image-734" /></p>
<p>After seven years of being a software developer I have finally done it - I&#8217;ve joined a web agency! On November 3rd I will be joining <a href="http://www.mbarnhart.com/"><strong>Malenke | Barnhart</strong></a> here in Denver. I&#8217;m pretty excited about it. It looks like a real fun place to work, Xbox 360 on down time, dress however you want and drink beer on Fridays. All while producing incredible top quality work. Here is some of their work:</p>
<ul>
<li><a href="http://www.denver.org/">Denver.org</a></li>
<li><a href="http://www.compareford.com/regionSelector.php">Ford</a></li>
<li><a href="http://www.denverzoo.org/">Denver Zoo</a></li>
<li><a href="http://www.howmuchshakecanyoutake.com/ ">Quiznos</a></li>
<li><a href="http://www.girlscoutsofcolorado.org/">Girl Scouts</a></li>
</ul>
<p>So for those of you that have worked for an agency before, do you have any advice for me?</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=YGp5M"><img src="http://feeds.feedburner.com/~f/search-this?i=YGp5M" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=VhCJm"><img src="http://feeds.feedburner.com/~f/search-this?i=VhCJm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=bOkfM"><img src="http://feeds.feedburner.com/~f/search-this?i=bOkfM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=XbUPM"><img src="http://feeds.feedburner.com/~f/search-this?i=XbUPM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=Eip9m"><img src="http://feeds.feedburner.com/~f/search-this?i=Eip9m" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=vZKcm"><img src="http://feeds.feedburner.com/~f/search-this?i=vZKcm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=QYM2M"><img src="http://feeds.feedburner.com/~f/search-this?i=QYM2M" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=lH9iM"><img src="http://feeds.feedburner.com/~f/search-this?i=lH9iM" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/10/22/new-job-at-a-web-dev-agency/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/10/22/new-job-at-a-web-dev-agency/</feedburner:origLink></item>
		<item>
		<title>Links for the Weekend, 10-18-2008</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/424661593/</link>
		<comments>http://www.search-this.com/2008/10/18/links-for-the-weekend-10-18-2008/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 14:59:45 +0000</pubDate>
		<dc:creator>Golgotha</dc:creator>
		
		<category><![CDATA[Search Engine Optimization]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=731</guid>
		<description><![CDATA[
Man Chews Through 15-lb. Burger - I don&#8217;t know what to say, bon appetit&#8230;
Manuel Camino &#38; Taurusfolio Highlights - That is some talent there.
The Importance of Sitemaps - Jeff Atwood discovers the light or at least the importance of the sitemap.
Bride In The Pool - Oh no you didn&#8217;t&#8230;
Json.NET - Simplifying .NET  JavaScript communication [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://www.comcast.net/articles/news-general/20081016/ODD.Big.Burger/&#038;cvqh=itn_burger/">Man Chews Through 15-lb. Burger</a> - I don&#8217;t know what to say, bon appetit&#8230;</li>
<li><a href="http://www.xebius.com/taurusfolio/">Manuel Camino &amp; Taurusfolio Highlights</a> - That is some talent there.</li>
<li><a href="http://www.codinghorror.com/blog/archives/001174.html">The Importance of Sitemaps</a> - Jeff Atwood discovers the light or at least the importance of the sitemap.</li>
<li><a href="http://www.youtube.com/watch?v=mqKWay-_3bk">Bride In The Pool</a> - Oh no you didn&#8217;t&#8230;</li>
<li><a href="http://james.newtonking.com/archive/2006/06/26/571.aspx">Json.NET - Simplifying .NET <-> JavaScript communication</a> - JSON.NET == NICE</li>
<li><a href="http://alistapart.com/articles/sprites2">CSS Sprites2 - It&#8217;s JavaScript Time </a> - Hey it&#8217;s Dave Shea, what can you say&#8230;</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=fo9IM"><img src="http://feeds.feedburner.com/~f/search-this?i=fo9IM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=OGs2m"><img src="http://feeds.feedburner.com/~f/search-this?i=OGs2m" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=xZYSM"><img src="http://feeds.feedburner.com/~f/search-this?i=xZYSM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=xTwYM"><img src="http://feeds.feedburner.com/~f/search-this?i=xTwYM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=Drsjm"><img src="http://feeds.feedburner.com/~f/search-this?i=Drsjm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=ko26m"><img src="http://feeds.feedburner.com/~f/search-this?i=ko26m" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=UoZ3M"><img src="http://feeds.feedburner.com/~f/search-this?i=UoZ3M" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=GjGkM"><img src="http://feeds.feedburner.com/~f/search-this?i=GjGkM" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/10/18/links-for-the-weekend-10-18-2008/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/10/18/links-for-the-weekend-10-18-2008/</feedburner:origLink></item>
		<item>
		<title>My Favorite Geek Books of 2008</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/408275399/</link>
		<comments>http://www.search-this.com/2008/10/01/my-favorite-geek-books-of-2008/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 14:05:24 +0000</pubDate>
		<dc:creator>Golgotha</dc:creator>
		
		<category><![CDATA[Website Design]]></category>

		<category><![CDATA[Website Tools]]></category>

		<category><![CDATA[books]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=724</guid>
		<description><![CDATA[
The above photo is my stack of geek books from last Christmas. Yes, I love books &#8212; I love the way they smell, thumbing through the pages and oh yes, the wisdom they bestow. I admit, often times I don&#8217;t make it through the entire book. Sometimes just a handful of chapters. But every now [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.search-this.com/wp-content/uploads/2008/09/books1.jpg" alt="" title="books" width="424" height="318" class="alignnone size-full wp-image-730" /></p>
<p>The above photo is my stack of geek books from last Christmas. Yes, I love books &#8212; I love the way they smell, thumbing through the pages and oh yes, the wisdom they bestow. I admit, often times I don&#8217;t make it through the entire book. Sometimes just a handful of chapters. But every now and then you come across some great books that are gems. So I thought I would share a few of my favorite books from this year.</p>
<p><img src="http://www.search-this.com/wp-content/uploads/2008/09/c.jpg" alt="Head First C#" title="Head First C#" width="240" height="240" style="padding-right:7px; float:left"  /></p>
<h3>Head First C#</h3>
<p>Each morning before work I stop and enjoy a latte or cappuccino. This is my book of choice to read while sipping down my caffeine kick-start. That&#8217;s because it&#8217;s not like your typical code book which can be pretty dry. This book is very visual, full of pictures and diagrams that help to illustrate and drive home key points. Often times it finishes the chapter with a crossword puzzle helping you to retain the points of the chapter. In fact those crossword puzzles inspired <a href="http://www.search-this.com/2008/02/06/web-developer-crossword-puzzle/"><strong>this post</strong></a>. It&#8217;s a great read for beginners and advanced users alike. </p>
<div class="clearfix"></div>
<p><img src="http://www.search-this.com/wp-content/uploads/2008/09/actionscript.jpg" alt="Object-Oriented ActionScript 3.0" title="Object-Oriented ActionScript 3.0" width="200" height="240"  style="padding:7px; float:right;" /></p>
<h3>Object-Oriented ActionScript 3.0</h3>
<p>If you are just starting to learn Flash or Flex or ActionScript then this is the book for you. Actually, even if you are a seasoned pro this is still the book for you. Why? Because it teaches you the correct way to do things. It teaches you true object oriented programming in ActionScript. With topics like: Encapsulation, Classes, Inheritance, Polymorphism, Interfaces, and Design Patterns you will not only learn ActionScript, but also principles of OOP. If you wish to learn proper Flash/Flex development then this book is for you.</p>
<div class="clearfix"></div>
<p><img src="http://www.search-this.com/wp-content/uploads/2008/09/aspnet.png" alt="The ASP.NET Anthology" title="The ASP.NET Anthology" width="178" height="229" style="float:left; padding:7px;" /></p>
<h3>The ASP.NET Anthology</h3>
<p>This book takes a problem solving approach to a handful of common everyday ASP.NET developer needs. Things like: form validation, membership and access control, working with email, rendering binary content, Ajax, handling errors and more. <a href="http://www.sitepoint.com/books/aspnetant1/?SID=76476f7d4aaa973e90c06459d01fd08c">Sitepoint</a> says this about the book, which I agree with: &#8220;Solve specific ASP.NET problems fast — without wading through mountains of reference material — and rest assured your code follows current best practices.  For the serious ASP.NET coder, this book is a must-have.&#8221;</p>
<div class="clearfix"></div>
<p><img src="http://www.search-this.com/wp-content/uploads/2008/09/css.png" alt="The Ultimate CSS Reference" title="The Ultimate CSS Reference" width="170" height="210" style="float:right; padding:7px;" /></p>
<h3>The Ultimate CSS Reference</h3>
<p>Perhaps the last CSS book you&#8217;ll ever need. Written by our very own Paul O&#8217;Brien whom regulars to Search-This will know does an amazing job making sense of often tricky, finicky or strange CSS behaviors. Almost every web site created today is built using CSS, which is why a thorough knowledge of this technology is mandatory for every web designer. There are plenty of good resources to help you learn the basics, but if you’re ready to truly master the intricacies of CSS, this is the book you need.</p>
<div class="clearfix"></div>
<p><img src="http://www.search-this.com/wp-content/uploads/2008/09/asp.png" alt="ASP.NET 3.5 Unleashed" title="ASP.NET 3.5 Unleashed" width="175" height="229" style="float:left; padding:7px;" /></p>
<h3>ASP.NET 3.5 Unleashed</h3>
<p>Make no mistake about it, this is a reference book at almost 2,000 pages. But it may be the best ASP.NET reference book on the market. It covers <em>everything</em>: LINQ to SQL, ASP.NET AJAX, ListView and DataPager data access controls and all the rest. What&#8217;s especially nice is that you can tell the author, Stephen Walther, has spent time in the trenches. He knows best practices, like using CSS for all his layout work and having well-formed cross-browser friendly code all the while teaching you ASP.NET 3.5. This is a must-have book for all ASP.NET developers.</p>
<div class="clearfix"></div>
<p>Well there you have it, five of my favorite geek books of 2008. <strong>Do you have a book that you read this year that you thought was a gem?</strong></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=3VTKM"><img src="http://feeds.feedburner.com/~f/search-this?i=3VTKM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=vlTfm"><img src="http://feeds.feedburner.com/~f/search-this?i=vlTfm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=OFHaM"><img src="http://feeds.feedburner.com/~f/search-this?i=OFHaM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=ZCUlM"><img src="http://feeds.feedburner.com/~f/search-this?i=ZCUlM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=vpw9m"><img src="http://feeds.feedburner.com/~f/search-this?i=vpw9m" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=PpNOm"><img src="http://feeds.feedburner.com/~f/search-this?i=PpNOm" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=WuIWM"><img src="http://feeds.feedburner.com/~f/search-this?i=WuIWM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=ePs4M"><img src="http://feeds.feedburner.com/~f/search-this?i=ePs4M" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/10/01/my-favorite-geek-books-of-2008/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/10/01/my-favorite-geek-books-of-2008/</feedburner:origLink></item>
		<item>
		<title>Links for the Weekend, 9-26-2008</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/404665230/</link>
		<comments>http://www.search-this.com/2008/09/27/links-for-the-weekend-9-26-2008/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 13:37:42 +0000</pubDate>
		<dc:creator>Golgotha</dc:creator>
		
		<category><![CDATA[Links for the Weekend]]></category>

		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=722</guid>
		<description><![CDATA[
Fusionman - Awesome, totally awesome!
Regular Expression Library - Very handy, I hate regular expressions.
NFL Playoff Race Graph - I love visual displays of data.
Top 7 Fonts Used By Professionals In Graphic Design - Number one: Helvetica.
Contrast and Meaning - I love Andy&#8217;s insight.
SNL- Tina Fey as Sarah Palin  -  Should you have missed [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://www.telegraph.co.uk/news/worldnews/europe/france/3086878/Fusionman-Jet-man-Yves-Rossy-soars-into-record-books-with-solo-flight-over-Channel.html">Fusionman</a> - Awesome, totally awesome!</li>
<li><a href="http://regexlib.com/">Regular Expression Library</a> - Very handy, I hate regular expressions.</li>
<li><a href="http://www.sportsclubstats.com/NFL.html">NFL Playoff Race Graph</a> - I love visual displays of data.</li>
<li><a href="http://justcreativedesign.com/2008/09/23/top-7-fonts-used-by-professionals-in-graphic-design-2/">Top 7 Fonts Used By Professionals In Graphic Design</a> - Number one: Helvetica.</li>
<li><a href="http://www.andyrutledge.com/contrast-and-meaning.php">Contrast and Meaning</a> - I love Andy&#8217;s insight.</li>
<li><a href="http://www.youtube.com/watch?v=fHHYOh5qja8&#038;feature=related">SNL- Tina Fey as Sarah Palin </a> -  Should you have missed it&#8230;</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=L7D1L"><img src="http://feeds.feedburner.com/~f/search-this?i=L7D1L" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=QEnLl"><img src="http://feeds.feedburner.com/~f/search-this?i=QEnLl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=LTb5L"><img src="http://feeds.feedburner.com/~f/search-this?i=LTb5L" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=Qk3LL"><img src="http://feeds.feedburner.com/~f/search-this?i=Qk3LL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=Pntwl"><img src="http://feeds.feedburner.com/~f/search-this?i=Pntwl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=XgMZl"><img src="http://feeds.feedburner.com/~f/search-this?i=XgMZl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=G9b2L"><img src="http://feeds.feedburner.com/~f/search-this?i=G9b2L" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=Vrj2L"><img src="http://feeds.feedburner.com/~f/search-this?i=Vrj2L" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/09/27/links-for-the-weekend-9-26-2008/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/09/27/links-for-the-weekend-9-26-2008/</feedburner:origLink></item>
		<item>
		<title>Esquire October 2008 E-Ink Cover</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/399148460/</link>
		<comments>http://www.search-this.com/2008/09/21/esquire-october-2008-e-ink-cover/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 20:05:58 +0000</pubDate>
		<dc:creator>Golgotha</dc:creator>
		
		<category><![CDATA[Search Engine Optimization]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=721</guid>
		<description><![CDATA[The October issue of Esquire, only a 100,000 issues released, features the world&#8217;s first E-Ink magazine cover. The E-Ink display is the same technology used in the Amazon Kindle and Sony Reader. This is the first time it&#8217;s been used in a magazine cover and I must say it&#8217;s very impressive!


Are we moving ever closer [...]]]></description>
			<content:encoded><![CDATA[<p>The October issue of Esquire, only a 100,000 issues released, features the world&#8217;s first E-Ink magazine cover. The E-Ink display is the same technology used in the Amazon Kindle and Sony Reader. This is the first time it&#8217;s been used in a magazine cover and I must say it&#8217;s very impressive!</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/iKS12PMdJ6w&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/iKS12PMdJ6w&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><strong><br />
Are we moving ever closer to that promised paperless utopia?</strong></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=vmypL"><img src="http://feeds.feedburner.com/~f/search-this?i=vmypL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=S1VBl"><img src="http://feeds.feedburner.com/~f/search-this?i=S1VBl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=RcobL"><img src="http://feeds.feedburner.com/~f/search-this?i=RcobL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=JNVvL"><img src="http://feeds.feedburner.com/~f/search-this?i=JNVvL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=b9NEl"><img src="http://feeds.feedburner.com/~f/search-this?i=b9NEl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=5UWfl"><img src="http://feeds.feedburner.com/~f/search-this?i=5UWfl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=Lcn1L"><img src="http://feeds.feedburner.com/~f/search-this?i=Lcn1L" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=wCM7L"><img src="http://feeds.feedburner.com/~f/search-this?i=wCM7L" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/09/21/esquire-october-2008-e-ink-cover/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/09/21/esquire-october-2008-e-ink-cover/</feedburner:origLink></item>
		<item>
		<title>Links for the Weekend, 9-13-2008</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/391588210/</link>
		<comments>http://www.search-this.com/2008/09/13/links-for-the-weekend-9-13-2008/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 14:51:18 +0000</pubDate>
		<dc:creator>Golgotha</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Links for the Weekend]]></category>

		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=720</guid>
		<description><![CDATA[
Animated Navigation Items Using jQuery - Good article John!
Quantum of Solace (2008) Trailer 2 - I love Bond movies, always have, always will.
24 Things to do When Stuck for a Topic to Blog About - Good article by Darren.
Tiled Backgrounds Designer - Fantastic! Every now and then a website comes along that is so useful, [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://www.tyssendesign.com.au/articles/animated-navigation-items-using-jquery/">Animated Navigation Items Using jQuery</a> - Good article John!</li>
<li><a href="http://www.youtube.com/watch?v=kQW2MtibAmk">Quantum of Solace (2008) Trailer 2</a> - I love Bond movies, always have, always will.</li>
<li><a href="http://www.problogger.net/archives/2008/08/08/24-things-to-do-when-stuck-for-a-topic-to-blog-about/">24 Things to do When Stuck for a Topic to Blog About</a> - Good article by Darren.</li>
<li><a href="http://bgpatterns.com/">Tiled Backgrounds Designer</a> - Fantastic! Every now and then a website comes along that is so useful, this is one of them.</li>
<li><a href="http://theclosetentrepreneur.com/10-green-business-ideas-for-phoenix-entrepreneurs">10 Green Business Ideas For Phoenix Entrepreneurs!</a> - Nice write up Tomas!</li>
<li><a href="http://awesome.goodmagazine.com/features/011/Wanderlust/">GOOD Traces of the Most Famous Trips in History</a> - Another great website!</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=D3VSL"><img src="http://feeds.feedburner.com/~f/search-this?i=D3VSL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=R7tnl"><img src="http://feeds.feedburner.com/~f/search-this?i=R7tnl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=62wEL"><img src="http://feeds.feedburner.com/~f/search-this?i=62wEL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=IczwL"><img src="http://feeds.feedburner.com/~f/search-this?i=IczwL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=izQxl"><img src="http://feeds.feedburner.com/~f/search-this?i=izQxl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=Pji9l"><img src="http://feeds.feedburner.com/~f/search-this?i=Pji9l" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=590kL"><img src="http://feeds.feedburner.com/~f/search-this?i=590kL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=mh0IL"><img src="http://feeds.feedburner.com/~f/search-this?i=mh0IL" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/09/13/links-for-the-weekend-9-13-2008/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/09/13/links-for-the-weekend-9-13-2008/</feedburner:origLink></item>
		<item>
		<title>Online Job Searching (For Web Developers)</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/389302264/</link>
		<comments>http://www.search-this.com/2008/09/10/online-job-searching-web-development/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 04:11:28 +0000</pubDate>
		<dc:creator>Golgotha</dc:creator>
		
		<category><![CDATA[Stuff]]></category>

		<category><![CDATA[jobs]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=719</guid>
		<description><![CDATA[I&#8217;ve been in the job market twice this year and thought I would share with you some of the sites that I have found useful when looking for a job. Perhaps you know of some good sites that you would like to share too?
Smashing Magazine Jobs
This site has a small selection of web design/development jobs. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been in the job market twice this year and thought I would share with you some of the sites that I have found useful when looking for a job. Perhaps you know of some good sites that you would like to share too?</p>
<p><a href="http://jobs.smashingmagazine.com/"><strong>Smashing Magazine Jobs</strong></a><br />
This site has a small selection of web design/development jobs. Most are looking for front-end work like: XHTML, CSS, JavaScript, Flash and ActionScript. You can sort by fulltime or freelance positions. Most of the listings are from the companies and not recruiters.</p>
<p><a href="http://www.authenticjobs.com/"><strong>Authentic Jobs</strong></a><br />
Authentic Jobs is another site that features a short selection (maybe 100 listings is all) of web jobs. Authentic Jobs is a targeted destination for standards-aware designers and developers and the companies seeking to hire them.</p>
<p><a href="http://www.krop.com/"><strong>Krop</strong></a><br />
A pretty good selection of design and tech jobs, but the Ajax enabled search on this site really isn&#8217;t working for me. </p>
<p><a href="http://www.dice.com"><strong>Dice</strong></a><br />
Dice is a huge collection of tech jobs. It&#8217;s certainly a place to use when looking for a job. Do note that most of the jobs are posted by recruiters though. </p>
<p><a href="http://www.craigslist.org/about/sites"><strong>Craigslist</strong></a><br />
I think Craigslist is actually one of the best places to look for jobs. It has a good selection and most of the post are from the IT directors and not technical recruiters. </p>
<p>Good luck and happy job hunting.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=Jj2BL"><img src="http://feeds.feedburner.com/~f/search-this?i=Jj2BL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=gUqwl"><img src="http://feeds.feedburner.com/~f/search-this?i=gUqwl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=2kKYL"><img src="http://feeds.feedburner.com/~f/search-this?i=2kKYL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=WXyDL"><img src="http://feeds.feedburner.com/~f/search-this?i=WXyDL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=w6Usl"><img src="http://feeds.feedburner.com/~f/search-this?i=w6Usl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=W60fl"><img src="http://feeds.feedburner.com/~f/search-this?i=W60fl" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=LzXlL"><img src="http://feeds.feedburner.com/~f/search-this?i=LzXlL" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=7QmQL"><img src="http://feeds.feedburner.com/~f/search-this?i=7QmQL" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/09/10/online-job-searching-web-development/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/09/10/online-job-searching-web-development/</feedburner:origLink></item>
		<item>
		<title>Links for the Weekend, 8-30-2008</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/378959446/</link>
		<comments>http://www.search-this.com/2008/08/30/links-for-the-weekend-8-30-2008/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 14:45:05 +0000</pubDate>
		<dc:creator>Golgotha</dc:creator>
		
		<category><![CDATA[Links for the Weekend]]></category>

		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=718</guid>
		<description><![CDATA[
Why Tables for Layout Is Stupid - Old news, but maybe you missed it?
Artua Design Studio - Some great work here.
K2 Underground - Where to go to learn about K2&#8230;
Extreme Makeover - Same thing a 12 pack does&#8230;
Great Commercial - I like this one!
Using LINQ to SQL (Part 1)  - This will get you [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://www.hotdesign.com/seybold/">Why Tables for Layout Is Stupid</a> - Old news, but maybe you missed it?</li>
<li><a href="http://www.artua.com/portfolio/icons/">Artua Design Studio</a> - Some great work here.</li>
<li><a href="http://www.k2underground.com/blogs/chrisg/archive/2008/05/06/so-you-want-to-learn-more-about-k2-but-are-not-sure-where-to-go.aspx">K2 Underground</a> - Where to go to learn about K2&#8230;</li>
<li><a href="http://www.youtube.com/watch?v=Sovxk57_LgA&#038;feature=related">Extreme Makeover</a> - Same thing a 12 pack does&#8230;</li>
<li><a href="http://www.youtube.com/watch?v=BnrcyBS7_Bk&#038;feature=related">Great Commercial</a> - I like this one!</li>
<li><a href="http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx">Using LINQ to SQL (Part 1) </a> - This will get you started with LINQ&#8230;</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=xCIroK"><img src="http://feeds.feedburner.com/~f/search-this?i=xCIroK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=LnIAUk"><img src="http://feeds.feedburner.com/~f/search-this?i=LnIAUk" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=nBXGhK"><img src="http://feeds.feedburner.com/~f/search-this?i=nBXGhK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=gMYn0K"><img src="http://feeds.feedburner.com/~f/search-this?i=gMYn0K" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=zBwUkk"><img src="http://feeds.feedburner.com/~f/search-this?i=zBwUkk" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=FYL35k"><img src="http://feeds.feedburner.com/~f/search-this?i=FYL35k" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=mvt2TK"><img src="http://feeds.feedburner.com/~f/search-this?i=mvt2TK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=Y9k7CK"><img src="http://feeds.feedburner.com/~f/search-this?i=Y9k7CK" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/08/30/links-for-the-weekend-8-30-2008/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/08/30/links-for-the-weekend-8-30-2008/</feedburner:origLink></item>
		<item>
		<title>Let’s All Get Inline (In a Block, In a Block)</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/377140150/</link>
		<comments>http://www.search-this.com/2008/08/28/lets-all-get-inline-in-a-block-in-a-block/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 13:45:50 +0000</pubDate>
		<dc:creator>Paul OB</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=715</guid>
		<description><![CDATA[display-inline:block
One of the values for the display property is inline-block and although it has been around for quite a while now browsers have been slow on the uptake which is a shame because it's just the sort of thing that can be very useful. In this article we will investigate ways to implement display:inline-block in [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em>display-inline:block</em></strong></p>
<p>One of the values for the <em><a href="http://reference.sitepoint.com/css/display">display</a></em> property is <em>inline-block</em> and although it has been around for quite a while now browsers have been slow on the uptake which is a shame because it's just the sort of thing that can be very useful. In this article we will investigate ways to implement <em>display:inline-block</em> in a number of browsers.</p>
<p>If you are unfamiliar with inline-block then its use is defined as follows: "<strong>an inline-block makes the element generate a block box that’s laid out as if it were an inline box</strong>". </p>
<p>What this means is that a "block level box" can retain most of its block level capabilities but in an inline environment. This would allow you to align a number of boxes on the same line all with their own width and height <em>much in the same way as floating the elements but having the benefit of allowing inline rules to be applied to them unlike floats</em>.</p>
<p>For example, three or four inline-block elements could be aligned horizontally and centered by using the text-align:center property on the parent. This would automatically center the elements within the available width. We could also apply the vertical-align:property to align their top or bottom edges with each other.</p>
<p>Perhaps it's best to start with the <strong><a href="http://www.pmob.co.uk/search-this/inline-block-example2.htm">finished example</a></strong> so you can see what we are talking about. The result is also shown in the screenshot below.</p>
<p><strong>Figure 1</strong><br />
<a href='http://www.search-this.com/wp-content/uploads/2008/08/ib-fig1.png'><img src="http://www.search-this.com/wp-content/uploads/2008/08/ib-fig1.png" alt="" title="ib-fig1" width="300" height="69" class="alignnone size-full wp-image-716" /></a></p>
<p>As you can see in the above we have achieved three (apparently) block elements all aligned nicely in the same row. The elements are perfectly centred and they all have their bottom borders aligned with each other. Imagine trying to do this with floats.</p>
<p>The truth is you could not do this automatically with floats at all as you could never align the bottom borders unless you were using fixed heights and then could calculate the margins for each. It is also very difficult to <a href="http://www.pmob.co.uk/pob/centred-float.htm">center floats</a> also. With very little code we have achieved this effect so now we will get down to specific details.</p>
<p><strong>How's This Done</strong></p>
<p>For Firefox 3, Opera and Safari we simply use the <strong>display:inline-block</strong> property value and that's all there is to it. The vertical-alignment is taken care of by using the <a href="http://reference.sitepoint.com/css/vertical-align">vertical-align</a> property which applies to inline elements only which includes inline-block elements (not forgetting table cells of course). </p>
<p>The centering is handled in the same way that we would center text with text-align:center. </p>
<p>Using the above properties our basic code to center and align three elements is as follows.<br />
<strong>CSS</strong></p>
<div class="igBar"><span id="lcss-14"><a href="#" onclick="javascript:showPlainTxt('css-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-14">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">.cols<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">width</span>:44em;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">margin</span> :<span style="color: #993333;">auto</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">text-align</span>:<span style="color: #993333;">center</span>;<span style="color: #808080; font-style: italic;">/* centers inline-blocks*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border<span style="color: #3333ff;">:1px </span>solid #000;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">padding</span>:10px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.cols </span>p <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">display</span>:inline-<span style="color: #993333;">block</span>;<span style="color: #808080; font-style: italic;">/* FF3, Opera, Safari */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">width</span>:12em;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">margin<span style="color: #3333ff;">:<span style="color: #cc66cc;color:#800000;">0</span> </span>1em <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span>;<span style="color: #808080; font-style: italic;">/* need to remove top and bottom margin from p element*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">padding</span>:<span style="color: #cc66cc;color:#800000;">0</span>.5em;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border<span style="color: #3333ff;">:1px </span>solid #009;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">vertical-align</span>:<span style="color: #000000; font-weight: bold;">bottom</span>;<span style="color: #808080; font-style: italic;">/* align to bottom */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">background</span>:#f00;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.cols </span>p.last<span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">margin</span>:<span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#125;</span><span style="color: #808080; font-style: italic;">/* remove right margin from last element so that they are all centered*/</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
<strong>HTML</strong></p>
<div class="igBar"><span id="lhtml-15"><a href="#" onclick="javascript:showPlainTxt('html-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-15">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"cols"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></a></span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc commodo lorem ut justo.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></a></span>Ut molestie libero quis massa elementum tristique. Aliquam erat volutpat.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"last"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Duis purus diam, gravida et, mattis eget, semper ac, tellus. Suspendisse velit nunc, varius ut, pharetra malesuada, suscipit ut, lacus.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Browser Support</strong></p>
<p>At present the support for inline-block has just been added to Firefox 3 while Opera and Safari already support it. </p>
<p>So far so good but what about IE and Firefox2 I hear you shout!</p>
<p>For Firefox 2 (and earlier) we can use a <a href="http://reference.sitepoint.com/css/vendorspecific">Vendor Specific Extension</a> and use the proprietary   <em><a href="http://reference.sitepoint.com/css/moz-inline-box">display:-moz-inline-box;</a></em> (not -moz-inline-block as you may have expected although that property does exist).</p>
<p><em>-moz-inline-box </em> will allow Firefox 2 (and some older versions) to have a similar functionality as if they were using <em>display:inline-block</em>. Although I often tell you to avoid proprietary code there are times when nothing else will do but it's a risk you take and a choice you must make for yourself. Remember that proprietary extensions don't follow the standard exactly and may differ to the real CSS property and of course they won't validate.</p>
<p>So, armed with our new code let's add it to our existing CSS and see what happens.</p>
<div class="igBar"><span id="lcss-16"><a href="#" onclick="javascript:showPlainTxt('css-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-16">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">.cols<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">width</span>:44em;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">margin</span> :<span style="color: #993333;">auto</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">text-align</span>:<span style="color: #993333;">center</span>;<span style="color: #808080; font-style: italic;">/* centers inline-blocks*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border<span style="color: #3333ff;">:1px </span>solid #000;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">padding</span>:10px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.cols </span>p <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">display</span>:-moz-inline-box;<span style="color: #808080; font-style: italic;">/* Firefox 2 and under*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">display</span>:inline-<span style="color: #993333;">block</span>;<span style="color: #808080; font-style: italic;">/* FF3, Opera, Safari */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">width</span>:12em;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">margin<span style="color: #3333ff;">:<span style="color: #cc66cc;color:#800000;">0</span> </span>1em <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span>;<span style="color: #808080; font-style: italic;">/* need to remove top and bottom margin from p element*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">padding</span>:<span style="color: #cc66cc;color:#800000;">0</span>.5em;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border<span style="color: #3333ff;">:1px </span>solid #009;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">vertical-align</span>:<span style="color: #000000; font-weight: bold;">bottom</span>;<span style="color: #808080; font-style: italic;">/* align to bottom */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">background</span>:#f00;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.cols </span>p.last<span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">margin</span>:<span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#125;</span><span style="color: #808080; font-style: italic;">/* remove right margin from last element so that they are all centered*/</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>If you test the result in Firefox 2 you will get a display as shown in Figure 2 below.</p>
<p><strong>Figure 2</strong><br />
<a href='http://www.search-this.com/wp-content/uploads/2008/08/ib-fig2.png'><img src="http://www.search-this.com/wp-content/uploads/2008/08/ib-fig2.png" alt="" title="ib-fig2" width="300" height="27" class="alignnone size-full wp-image-717" /></a></p>
<p>Unfortunately although the red blocks are aligned as expected the text inside is flowing out of the containers. It seems that this extension has a few bugs so we will need to add an extra wrapper around our blocks and apply another width to hold everything in place.</p>
<p>The rules are changed from targeting the p element and applied to a surrounding div instead which allows us to set a width on the p element to contain the text within the block. In most cases you would have a wrapper like this anyway so it's no real problem.</p>
<p>The change in code is as follows:<br />
<strong>CSS:</strong></p>
<div class="igBar"><span id="lcss-17"><a href="#" onclick="javascript:showPlainTxt('css-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-17">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">.cols<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">width</span>:44em;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">margin</span> :<span style="color: #993333;">auto</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">text-align</span>:<span style="color: #993333;">center</span>;<span style="color: #808080; font-style: italic;">/* centers inline-blocks*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border<span style="color: #3333ff;">:1px </span>solid #000;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">padding</span>:10px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.cols </span>div <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">display</span>:-moz-inline-box;<span style="color: #808080; font-style: italic;">/* Firefox 2 and under*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">display</span>:inline-<span style="color: #993333;">block</span>;<span style="color: #808080; font-style: italic;">/* FF3, Opera, Safari */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">width</span>:12em;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">margin<span style="color: #3333ff;">:<span style="color: #cc66cc;color:#800000;">0</span> </span>1em <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span>;<span style="color: #808080; font-style: italic;">/* need to remove top and bottom margin from p element*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">padding</span>:<span style="color: #cc66cc;color:#800000;">0</span>.5em;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border<span style="color: #3333ff;">:1px </span>solid #009;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">vertical-align</span>:<span style="color: #000000; font-weight: bold;">bottom</span>;<span style="color: #808080; font-style: italic;">/* align to bottom */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">background</span>:#f00;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.cols </span>div.last<span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">margin</span>:<span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#125;</span><span style="color: #808080; font-style: italic;">/* remove right margin from last element so that they are all centered*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.cols </span>div p<span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span>:11em<span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
<strong>HTML:</strong></p>
<div class="igBar"><span id="lhtml-18"><a href="#" onclick="javascript:showPlainTxt('html-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-18">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"cols"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></a></span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc commodo lorem ut justo.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></a></span>Ut molestie libero quis massa elementum tristique. Aliquam erat volutpat.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"last"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></a></span>Duis purus diam, gravida et, mattis eget, semper ac, tellus. Suspendisse velit nunc, varius ut, pharetra malesuada, suscipit ut, lacus.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>With the changes in place our layout now clicks back into position and looks exactly as Figure 1 with all blocks aligned as expected.</p>
<p>Now with Firefox 2 looking pretty good we turn our attention to our favorite browser: Internet Explorer.</p>
<p>IE has partial support for <strong>inline-block</strong> but only supports it on elements that are naturally inline by default. What a waste as it's usually block elements you want to change! </p>
<p>It is actually the case that inline elements just need "haslayout" and they will automatically behave as inline-block elements. They don't in fact need display:inline-block at all and applying  the proprietary <em>zoom:1.0</em> will have the same effect as specifying inline-block. The "haslayout" trigger must be one that applies to inline elements as <em>width</em> and <em>height</em> won't do as they are only "haslayout" triggers for block elements.</p>
<p>Therefore to make an anchor display as inline-block you only need to specify this.</p>
<div class="igBar"><span id="lcss-19"><a href="#" onclick="javascript:showPlainTxt('css-19'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-19">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">a <span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">display</span>:inline-<span style="color: #993333;">block</span><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Or</p>
<div class="igBar"><span id="lcss-20"><a href="#" onclick="javascript:showPlainTxt('css-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-20">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">a<span style="color: #66cc66;">&#123;</span>zoom:<span style="color: #cc66cc;color:#800000;">1</span>.<span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>So we have established that we can make inline elements obey inline-block rules but what do we do for block level elements?</p>
<p>It turns out that you can also make block level elements behave as if they are <em>inline-block</em> elements by setting the element first to <em>display:inline</em> and then apply "<strong><a href="http://reference.sitepoint.com/css/haslayout">haslayout</a></strong>" to that element. The "haslayout" trigger has to be one of the properties that cause "haslayout" to be true on inline elements. We can't use the block level triggers because the element is now inline which is why height and width will not be "haslayout" triggers for our new inline element as mentioned above.</p>
<p>So what properties apply to inline elements that will trigger "haslayout"?</p>
<p>The<a href="http://msdn.microsoft.com/en-us/library/ms533776.aspx"> MSDN site</a> has a list of available properties and we will need to choose from this list. </p>
<p>We could use display:inline-block because that is a "haslayout" trigger for inline elements but if we apply it in the same rule then that will over-rule our previous <em>display:inline</em> setting and all we get is an element with "haslayout" but not inline block. We could use zoom:1.0 in the same rule and that would create an inline-block element.</p>
<p>e.g.</p>
<div class="igBar"><span id="lcss-21"><a href="#" onclick="javascript:showPlainTxt('css-21'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-21">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">div.test<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">display</span>:<span style="color: #993333;">inline</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">zoom:<span style="color: #cc66cc;color:#800000;">1</span>.<span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>However as zoom is proprietary (non-valid) IE only code we can use another method which utilizes <em>display:inline-block</em>. The only caveat is that as mentioned before we must specify it in a separate rule so we don't cancel out the display:inline effect.</p>
<div class="igBar"><span id="lcss-22"><a href="#" onclick="javascript:showPlainTxt('css-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-22">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">div.test<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">display<span style="color: #3333ff;">:<span style="color: #993333;">inline</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"></span><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">div.test<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">display</span>:inline-<span style="color: #993333;">block</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>I should re-iterate that all we are doing here is creating an inline element and the setting "haslayout" to be true. The display:inline-block is only incidental in that it is applying "haslayout" and as shown above the zoom property could be used to similar effect.</p>
<p>Whew - did you get all that?</p>
<p>Armed with the knowledge above we can re-vamp our code to cater for IE7 and under. IE8 supports display:inline-block properly (as far as I can tell) so we will use conditional comments to pass the values to only IE7 and under.</p>
<p>The revised code is as follows.<br />
<strong>CSS</strong></p>
<div class="igBar"><span id="lcss-23"><a href="#" onclick="javascript:showPlainTxt('css-23'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-23">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">.cols<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">width</span>:44em;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">margin</span> :<span style="color: #993333;">auto</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">text-align</span>:<span style="color: #993333;">center</span>;<span style="color: #808080; font-style: italic;">/* centers inline-blocks*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border<span style="color: #3333ff;">:1px </span>solid #000;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">padding</span>:10px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.cols </span>div <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">display</span>:-moz-inline-box;<span style="color: #808080; font-style: italic;">/* Firefox 2 and under*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">display</span>:inline-<span style="color: #993333;">block</span>;<span style="color: #808080; font-style: italic;">/* FF3, Opera, Safari */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">width</span>:12em;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">margin<span style="color: #3333ff;">:<span style="color: #cc66cc;color:#800000;">0</span> </span>1em <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span>;<span style="color: #808080; font-style: italic;">/* need to remove top and bottom margin from p element*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">padding</span>:<span style="color: #cc66cc;color:#800000;">0</span>.5em;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border<span style="color: #3333ff;">:1px </span>solid #009;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">vertical-align</span>:<span style="color: #000000; font-weight: bold;">bottom</span>;<span style="color: #808080; font-style: italic;">/* align to bottom */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">background</span>:#f00;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.cols </span>div.last<span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">margin</span>:<span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#125;</span><span style="color: #808080; font-style: italic;">/* remove right margin from last element so that they are all centered*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.cols </span>div p<span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span>:11em<span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>IE Html:</strong></p>
<div class="igBar"><span id="lhtml-24"><a href="#" onclick="javascript:showPlainTxt('html-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-24">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--[if lt IE 8]&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">&lt;style</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">.cols div{display:inline}</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/style&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;</span></a>!<span style="color: #66cc66;">&#91;</span>endif<span style="color: #66cc66;">&#93;</span>--<span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lhtml-25"><a href="#" onclick="javascript:showPlainTxt('html-25'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-25">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"> </li>
</ol>
</div>
</div>
</div>
<p>
<strong>Main Html</strong>:</p>
<div class="igBar"><span id="lhtml-26"><a href="#" onclick="javascript:showPlainTxt('html-26'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-26">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"cols"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></a></span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc commodo lorem ut justo.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></a></span>Ut molestie libero quis massa elementum tristique. Aliquam erat volutpat.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"last"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></a></span>Duis purus diam, gravida et, mattis eget, semper ac, tellus. Suspendisse velit nunc, varius ut, pharetra malesuada, suscipit ut, lacus.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>That just about wraps it up and we now have blocks aligned in most browsers. Please  refer to the <a href="http://www.pmob.co.uk/search-this/inline-block-example2.htm"><strong>full demo</strong></a> for the complete code as the CSS is all in the head (just view source).</p>
<p>I hope you've enjoyed this little foray into the wonderful world of IE and now you can all get back inline.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=eKZOpK"><img src="http://feeds.feedburner.com/~f/search-this?i=eKZOpK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=X2C8dk"><img src="http://feeds.feedburner.com/~f/search-this?i=X2C8dk" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=xOqa2K"><img src="http://feeds.feedburner.com/~f/search-this?i=xOqa2K" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=hMXu8K"><img src="http://feeds.feedburner.com/~f/search-this?i=hMXu8K" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=tqwXDk"><img src="http://feeds.feedburner.com/~f/search-this?i=tqwXDk" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=L9vpAk"><img src="http://feeds.feedburner.com/~f/search-this?i=L9vpAk" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=UggGrK"><img src="http://feeds.feedburner.com/~f/search-this?i=UggGrK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=vEsa2K"><img src="http://feeds.feedburner.com/~f/search-this?i=vEsa2K" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/08/28/lets-all-get-inline-in-a-block-in-a-block/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/08/28/lets-all-get-inline-in-a-block-in-a-block/</feedburner:origLink></item>
		<item>
		<title>IDing the Problem of ASP.NET</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/369995032/</link>
		<comments>http://www.search-this.com/2008/08/20/iding-the-problem-of-aspnet/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 13:59:37 +0000</pubDate>
		<dc:creator>Golgotha</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[C#]]></category>

		<category><![CDATA[Website Design]]></category>

		<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=714</guid>
		<description><![CDATA[I love ASP.NET, but one thing I find extremely frustrating is dealing with the automatically generated ID properties that it places on page elements.
For example, let's say you have a div with an id of "contentTop" like below:
PLAIN TEXT
HTML:




&#60;div id="contentTop" runat="server"&#62;...&#60;/div&#62; 






Because you have made the control a server-side control by adding the runat="server" attribute [...]]]></description>
			<content:encoded><![CDATA[<p>I love ASP.NET, but one thing I find extremely frustrating is dealing with the automatically generated ID properties that it places on page elements.</p>
<p>For example, let's say you have a div with an id of "contentTop" like below:</p>
<div class="igBar"><span id="lhtml-32"><a href="#" onclick="javascript:showPlainTxt('html-32'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-32">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"contentTop"</span> runat=<span style="color: #ff0000;">"server"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>...<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Because you have made the control a server-side control by adding the <strong>runat="server"</strong> attribute it will now be rendered with a different ID when it hits the browser (view the source code and you will see). It will get rendered as something like this:</p>
<div class="igBar"><span id="lhtml-33"><a href="#" onclick="javascript:showPlainTxt('html-33'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-33">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"ctl00_contentTop"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>...<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This is because ASP.NET generates its own IDs to ensure that every element on the page has a unique ID. Developers that work with JavaScript and CSS will immediately see the problem. This causes difficulty when using JavaScript and CSS which rely on those IDs to reference elements, as they can't easily predict what the generated ID will be. When it comes to  <a href="http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html">CSS specificity</a> the ID selector is extremely useful. In addition, anyone that uses JavaScript knows that <strong>getElementById</strong> (or one of the JavaScript library ways) is the most popular way to target an element. So why the hell does ASP.NET do this to us? Honestly, I can't really tell why, other than the fact that they must not trust us enough to be able to uniquely ID our elements ourselves. </p>
<p>But I don't want to just complain here, I would like to provide some solutions too.</p>
<h2>Solution</h2>
<p>The solution will be found in the <strong>ClientID </strong>property of the server-side control. The ClientID property represents the ID that ASP.NET will use for the element on the client.</p>
<p>Using the <strong>ScriptManager</strong> we place the ClientID in a hidden form field. This can all be done in the code-behind file by using the following code:</p>
<div class="igBar"><span id="lcsharp-34"><a href="#" onclick="javascript:showPlainTxt('csharp-34'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-34">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ScriptManager.<span style="color: #0000FF;">RegisterHiddenField</span><span style="color: #000000;">&#40;</span><span style="color: #0600FF;">this</span>, <span style="color: #808080;">"contentTop"</span>, contentTop.<span style="color: #0000FF;">ClientID</span><span style="color: #000000;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Be sure to have included the ScriptManager to your page, like so:</p>
<div class="igBar"><span id="lasp-35"><a href="#" onclick="javascript:showPlainTxt('asp-35'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ASP:</span>
<div id="asp-35">
<div class="asp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;asp:ScriptManager ID=<span style="color:#CC0000;">"ScriptManager1"</span> runat=<span style="color:#CC0000;">"server"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/asp:ScriptManager&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Now we can use JavaScript to retrieve the value from our hidden form fields.</p>
<div class="igBar"><span id="ljavascript-36"><a href="#" onclick="javascript:showPlainTxt('javascript-36'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-36">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> id = form1.<span style="color: #006600;">contentTop</span>.<span style="color: #006600;">value</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> cTop = document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'id'</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>That's it, if you know of another way, please let us know.<br />
Happy coding.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=gcbN6K"><img src="http://feeds.feedburner.com/~f/search-this?i=gcbN6K" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=va3t0k"><img src="http://feeds.feedburner.com/~f/search-this?i=va3t0k" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=jLYcwK"><img src="http://feeds.feedburner.com/~f/search-this?i=jLYcwK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=9zlKHK"><img src="http://feeds.feedburner.com/~f/search-this?i=9zlKHK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=9Yx3kk"><img src="http://feeds.feedburner.com/~f/search-this?i=9Yx3kk" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=8ol3Wk"><img src="http://feeds.feedburner.com/~f/search-this?i=8ol3Wk" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=XXcEcK"><img src="http://feeds.feedburner.com/~f/search-this?i=XXcEcK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=rSJYFK"><img src="http://feeds.feedburner.com/~f/search-this?i=rSJYFK" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/08/20/iding-the-problem-of-aspnet/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/08/20/iding-the-problem-of-aspnet/</feedburner:origLink></item>
		<item>
		<title>The Star Spangled Banner - Marvin Gaye</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/366779954/</link>
		<comments>http://www.search-this.com/2008/08/16/the-star-spangled-banner-marvin-gaye/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 21:15:57 +0000</pubDate>
		<dc:creator>Golgotha</dc:creator>
		
		<category><![CDATA[Entertainment]]></category>

		<category><![CDATA[Marvin Gaye]]></category>

		<category><![CDATA[Star Spangled Banner]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=712</guid>
		<description><![CDATA[
If you're like me you've been staying up way too late the last week watching the Olympics. Specifically Michael Phelps, or Aquaman as I like to call him, break just about every swimming record known to man. Phelps has so far acquired seven  eight gold medals, that ties surpasses Mark Spitz who won seven [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.search-this.com/wp-content/uploads/2008/08/beijing-olympic-2008.jpg" alt="" title="beijing-olympic-2008" width="126" height="154" class="alignleft" style="padding-right:10px;" /></p>
<p>If you're like me you've been staying up way too late the last week watching the Olympics. Specifically Michael Phelps, or Aquaman as I like to call him, break just about every swimming record known to man. Phelps has so far acquired <del datetime="2008-08-17T04:20:38+00:00">seven </del> eight gold medals, that <del datetime="2008-08-17T04:20:38+00:00">ties</del> surpasses Mark Spitz who won seven gold medals in 1972.</p>
<p>It's very rare that you get the opportunity to watch the best person in the world do their craft and so I am in awe of him. So in Phelp's honor goes this post and I have included for your listening pleasure the <a href="javascript:playSong('The Star Spangled Banner')"><strong>Marvin Gaye version of The Star Spangled Banner</strong></a>. You likely have heard it recently in the <a href="http://www.youtube.com/watch?v=rbZTmcIfdBQ">Nike Basketball commercial</a>. </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/search-this?a=Kvu2jK"><img src="http://feeds.feedburner.com/~f/search-this?i=Kvu2jK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=R8cx8k"><img src="http://feeds.feedburner.com/~f/search-this?i=R8cx8k" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=VhK6WK"><img src="http://feeds.feedburner.com/~f/search-this?i=VhK6WK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=AobqKK"><img src="http://feeds.feedburner.com/~f/search-this?i=AobqKK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=Fb4tak"><img src="http://feeds.feedburner.com/~f/search-this?i=Fb4tak" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=yduIyk"><img src="http://feeds.feedburner.com/~f/search-this?i=yduIyk" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=P1RIdK"><img src="http://feeds.feedburner.com/~f/search-this?i=P1RIdK" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/search-this?a=jwO8dK"><img src="http://feeds.feedburner.com/~f/search-this?i=jwO8dK" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.search-this.com/2008/08/16/the-star-spangled-banner-marvin-gaye/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.search-this.com/2008/08/16/the-star-spangled-banner-marvin-gaye/</feedburner:origLink></item>
		<item>
		<title>My CSS is Cat -(Categories With CSS)</title>
		<link>http://feeds.feedburner.com/~r/search-this/~3/363919865/</link>
		<comments>http://www.search-this.com/2008/08/13/my-css-is-cat-categories-with-css/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 14:10:08 +0000</pubDate>
		<dc:creator>Paul OB</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.search-this.com/?p=706</guid>
		<description><![CDATA[This article details how to produce a product category list with associated images and text. This is the sort of thing you would see if you did a search on Amazon.
I am going to start by showing the finished product as this will help you visualize what we are going to achieve along the way. [...]]]></description>
			<content:encoded><![CDATA[<p>This article details how to produce a product category list with associated images and text. This is the sort of thing you would see if you did a <a href="http://www.amazon.com/s/ref=nb_ss_b?url=search-alias%3Dstripbooks&#038;field-keywords=Cascading+Style+Sheets+Reference+sitepoint&#038;x=0&#038;y=0">search on Amazon</a>.</p>
<p>I am going to start by showing the <a href="http://www.pmob.co.uk/search-this/definition-list3.htm"><strong>finished product</strong></a> as this will help you visualize what we are going to achieve along the way. Figure 1 below shows a smaller version of the task ahead.</p>
<p><strong>Figure 1</strong><br />
<img src="http://www.search-this.com/wp-content/uploads/2008/08/cat-fig1.png" alt="" title="cat-fig1" width="350" height="360" class="alignnone size-full wp-image-707" /></p>
<p>We are going to make a similar display but without using tables as in my view the information presented is not tabular and does not have a logical correspondence between rows and columns. Even if you do present a good case of why this should be in a table, please don't comment on this as we are interested in the layout techniques rather than perfect semantics (for this example). The techniques presented here can be used in other layouts that are certainly not tabular and will prove useful in many situations.</p>
<p><strong>Define Your Content</strong></p>
<p>The first thing we need to do is decide what elements we are going to use to style this category <strong>list</strong>. That's your first clue - we should already be thinking about using a list to do this. However, I feel that information like this is more suited to a definition list (DL) as the product name is the data term (DT) and the description underneath is the data definition (DD). (Feel free to disagree but whatever method you choose the techniques used to construct our layout will likely be the same.)</p>
<p>I'm using a Definition List which will allow us to semantically describe the heading and the associated text that describes the heading.</p>
<p>Although definitions have default styling applied, such as margins, we can simply get rid of that using one of the many reset techniques available. I am using a global reset for purposes of the demo but I suggest you look into more <a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">thorough methods</a>.</p>
<p>Lets' start by thinking about what we want to achieve.</p>
<p>The image needs to be at the left of the layout and the text needs to be lined up nicely alongside the image but we don't want the image to wrap underneath the image as that looks a little messy in a list like this.<br />
e.g. Not like this:<br />
<strong>Figure 2</strong><br />
<a href='http://www.search-this.com/wp-content/uploads/2008/08/cat-fig2.png'><img src="http://www.search-this.com/wp-content/uploads/2008/08/cat-fig2.png" alt="" title="cat-fig2" width="350" height="73" class="alignnone size-full wp-image-708" /></a></p>
<p>As you can see the last line of text wraps under the image rather spoiling the effect so we will look at how to overcome this problem without complicating the issue too much.</p>
<p>The image can be floated to the left and we can apply a right margin to push the text away at the side. So for a start we will do just that and see what our display looks like.</p>
<p><strong>HTML</strong></p>
<div class="igBar"><span id="lhtml-42"><a href="#" onclick="javascript:showPlainTxt('html-42'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-42">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/dl.html"><span style="color: #000000; font-weight: bold;">&lt;dl&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/dt.html"><span style="color: #000000; font-weight: bold;">&lt;dt&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"images/product.jpg"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">"Product image"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"93"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"62"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"#"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>The Name of the Product Goes here<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dt&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/dd.html"><span style="color: #000000; font-weight: bold;">&lt;dd&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></a></span>The description of whatever the heading is about goes here. The description of whatever the heading is about goes here.The description of whatever the heading is about goes here. The description of whatever the heading is about goes here. The description of whatever the heading is about goes here.The description of whatever the heading is about goes here.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dd&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dl&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>CSS:</strong></p>
<div class="igBar"><span id="lcss-43"><a href="#" onclick="javascript:showPlainTxt('css-43'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-43">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">*<span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">margin</span>:<span style="color: #cc66cc;color:#800000;">0</span>;padding:<span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">p<span style="color: #66cc66;">&#123;</span>margin<span style="color: #3333ff;">:<span style="color: #cc66cc;color:#800000;">0</span> </span><span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #6666ff;">.5em </span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">dl<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">width</span>:640px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; margin<span style="color: #3333ff;">:<span style="color: #cc66cc;color:#800000;">0</span> </span>auto;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; border-bottom<span style="color: #3333ff;">:1px </span>dashed #ccc;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding</span>:10px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">overflow</span>:<span style="color: #993333;">hidden</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background</span>:#f2f2f2;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">dl img<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">float</span>:<span style="color: #000000; font-weight: bold;">left</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; margin<span style="color: #3333ff;">:<span style="color: #cc66cc;color:#800000;">0</span> </span>10px <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; border<span style="color: #3333ff;">:1px </span>solid #000;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>If you run the above small code sample you will see a display almost exactly as that shown in Figure 2 above. The image is floated nicely to the left and the text wraps to the right side of the image except that the last line wraps under the image. </p>
<p>We will address that issue in a moment but it's important to mention at this stage that floats are removed from the flow and if you want them to stay inside your container you must use some sort of clearing mechanism. Otherwise the float will float out of the container and poke into the container below should content be less than the height of the image.</p>
<p>In our example I have added overflow:hidden to the <em>dl</em> container which will ensure that all floats are contained within. Overflow other than <em>visible</em> will cause elements to contain their floated children in most modern browsers. IE6 needs "haslayout" to be true and then it will auto clear floats also. This can be achieved by setting a dimension which we already have in place so no extra hacks are required. Overflow isn't always the most suitable clearing mechanism to use but in simple layouts it works well but you should investigate <a href="http://www.google.co.uk/search?hl=en&#038;rlz=1G1GGLQ_ENUK255&#038;sa=X&#038;oi=spell&#038;resnum=0&#038;ct=result&#038;cd=1&#038;q=clearing+floats+without+structural+markup&#038;spell=1">other clearing techniques </a>also.</p>
<p>Additionally, note that I have placed the image inside the <em>dt</em> element because the product image and it's title are really the same thing.</p>
<p><strong>Stopping The Text From Wrapping</strong></p>
<p>Usually authors would apply a left margin to the text content to make it steer clear of the image but this is not the best solution for three main reasons:</p>
<p>1) Firstly your images may be supplied dynamically and be of varying widths and therefore your left margin approach would fail unless you set a width wider than all the images. </p>
<p>2) The second problem would be that IE6 has a "<a href="http://www.sitepoint.com/forums/showpost.php?p=1374925&#038;postcount=15">3px jog</a>" on static content next to a float and would make the display look slightly odd. Sometimes this is barely noticeable but it can still be annoying.</p>
<p>3) Lastly and more importantly, if you have floated content mixed in your content description section and you try to clear them you will end up clearing all floats and the whole description drops below the float. Figure 3 shows an example of this.</p>
<p><strong>Figure 3</strong><br />
<a href='http://www.search-this.com/wp-content/uploads/2008/08/cat-fig3.png'><img src="http://www.search-this.com/wp-content/uploads/2008/08/cat-fig3.png" alt="" title="cat-fig3" width="350" height="102" class="alignnone size-full wp-image-709" /></a><br />
(Example shows what happens when a float (the red box) is cleared)</p>
<p>Luckily there is a simple method we can turn to that cures all these problems quite easily. (As an aside this method was also  exploited earlier in one of <a href="http://www.search-this.com/2007/11/12/two-column-layout-with-a-twist/">John's Article</a>s.) If we once again use <em><a href="http://reference.sitepoint.com/css/overflow">overflow </a></em> other than <em>visible</em> on this content we can make it form a rectangular box to the side of the image and also honoring the image's margins. It's almost as if we have floated another block to the side except that we haven't.</p>
<p>The <em>overflow:auto</em>  (or overflow:hidden) causes the element to form a rectangular block that will not only stay at the side of the floated image but will also contain any floated children. As another bonus It will also contain the effect of any clearing of floats in that section. Float clearing from within that <em>overflow:auto</em> container will be restricted to that container only and not just clear all floats above in the HTML as per usual.</p>
<p>The overflow method doesn't work in IE6 but fortunately forcing "haslayout" on the element concerned has exactly the same effects and with an added bonus of partially curing the "3px jog" mentioned earlier. As we don't want a dimension in this container we can use the height:1% hack supplied via the star selector hack to target IE6 and under only.</p>
<div class="igBar"><span id="lcss-44"><a href="#" onclick="javascript:showPlainTxt('css-44'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-44">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">* html dd<span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">height</span>:<span style="color: #cc66cc;color:#800000;">1</span>%<span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Therefore all we need to add to the CSS already shown is this:</p>
<div class="igBar"><span id="lcss-45"><a href="#" onclick="javascript:showPlainTxt('css-45'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-45">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">dd<span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">overflow</span>:<span style="color: #993333;">auto</span><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">* html dd <span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">height</span>:<span style="color: #cc66cc;color:#800000;">1</span>%<span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p> </p>
<p>If you run that code you will get a display similar to Figure 1 above.</p>
<p>The only extra element in Figure 1 is that I have placed some text to the right of the product title. I did this by placing the text in a  strong element and floated it to the right. However as floats need to be in front of the content that they will wrap (except for inline content on the same first line as the float but few browsers obey this anyway so its not worth arguing about) I have moved the strong element in front of the product description as follows.</p>
<div class="igBar"><span id="lhtml-46"><a href="#" onclick="javascript:showPlainTxt('html-46'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-46">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/dt.html"><span style="color: #000000; font-weight: bold;">&lt;dt&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"images/product.jpg"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">"Product image"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"93"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"62"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/strong.html"><span style="color: #000000; font-weight: bold;">&lt;strong&gt;</span></a></span>Some info text here<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/strong&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"#"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>The Name of the Product Goes here<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dt&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>There you have it. With relatively little code we have avoided a number of bugs and behaviors and produces a nice looking layout. I mentioned earlier that our fix only partially cured the 3px jog and the eagle eyed among you will note that although there is no jog on the content it does happen to be 3px further away than other browsers. If this is an issue for you then you can always offset this with a hack that applies 3px less right margin on the image. However I don't think many people will notice so I am not bothering to apply another hack.</p>
<p>The finished layout can be <a href="http://www.pmob.co.uk/search-this/definition-list3.htm"><strong>found here</strong></a> and I suggest that you copy the code from