<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Head in the Web &#187; DIV</title>
	<atom:link href="http://techblog.fywservices.com/tag/div/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.fywservices.com</link>
	<description>Building a better user experience one technology at a time</description>
	<lastBuildDate>Tue, 03 Jan 2012 18:12:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Tables Vs CSS Layouts</title>
		<link>http://techblog.fywservices.com/2009/05/tables-vs-css-layouts/</link>
		<comments>http://techblog.fywservices.com/2009/05/tables-vs-css-layouts/#comments</comments>
		<pubDate>Sun, 31 May 2009 19:58:55 +0000</pubDate>
		<dc:creator>Scott Nelson</dc:creator>
				<category><![CDATA[HMTL and CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[DIV]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[semantic web]]></category>

		<guid isPermaLink="false">http://techblog.fywservices.com/?p=157</guid>
		<description><![CDATA[I&#8217;m in the midst of customizing the themes for my blogs. Now, if I had oodles of time, I would build my own theme from the ground up. I don&#8217;t have a nano-oodle, let alone multiple oodles, so I&#8217;m just hacking up the default theme. No matter how well designed a web application is, it [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=1fdcc5aa84fd409b74de32bfd26699ba&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=40 height=40/><p>I&#8217;m in the midst of customizing the themes for my blogs. Now, if I had oodles of time, I would build my own theme from the ground up. I don&#8217;t have a nano-oodle, let alone multiple oodles, so I&#8217;m just hacking up the default theme.</p>
<p>No matter how well designed a web application is, it is always hard to step into someone else&#8217;s work and make changes that perfectly dovetail the original source. Not impossible, just hard. So, to keep a long story from getting way too long (it is impossible to make a long story short, because it is always too late by the time the thought occurs), I found myself using tables to modify the layouts (gasp!).</p>
<p>Using tables for something other than tabular data is something I avoid, but I do it anyways sometimes. In the case of the theme on this blog, it was a matter of the fastest way to modify an existing layout that I did not design. If I had more time, I&#8217;m sure I could have gotten past the bugs that cropped up when I tried modifying the CSS instead. If I had built it myself from the ground up, I could definitly have avoided the table approach because I am careful to avoid redundant classes and I document the things that aren&#8217;t glaringly obvious because I know I will forget later if I don&#8217;t. But, since neither of these were the case, I used the table. The momentary twinge of guilt passed as soon as I moved on to something else that caught my over-burdened attention. Until I ran across a job posting that stated something to the effect of &#8220;If you use tables for layout, do not apply&#8221;. Which got the question stuck in my mind &#8220;what is the truth about using tables or CSS for layout&#8221;?</p>
<p>I&#8217;ve been reading about the topic for six or seven years now, so it didn&#8217;t surprise me that<a href="http://www.google.com/search?q=tables+vs+divs&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a" target="_blank"> a search on &#8220;tables vs divs&#8221; in Google</a> returned  &#8220;about <strong>15,400,000</strong>&#8221; results in <strong>0.41</strong> seconds. What did surprise me was that the first six results were 100% relevant, and that the general consensus of the first ten results agreed with my thoughts on the topic, which are:</p>
<ul>
<li>The approach that is the least complicated is preferred over the one that is the most complicated</li>
<li>The semantic web is yet to come, hopefully will come, and it is better to use CSS for layout than tables when it does get here</li>
<li>If the layout is overly complex, the semantics will be lost regardless which approach is used</li>
<li>There is no value in re-writing your code simply to eliminate tables in layouts, while it is valuable to update to CSS if you need to re-write anyway</li>
<li>The best choice depends on the goal of the page</li>
</ul>
<p>If this sparks folks to register and comment, I will be happy to elaborate further.</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.fywservices.com/2009/05/tables-vs-css-layouts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

