<?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>Calcatraz Blog &#187; simplify</title>
	<atom:link href="http://www.calcatraz.com/blog/tag/simplify/feed" rel="self" type="application/rss+xml" />
	<link>http://www.calcatraz.com/blog</link>
	<description>Towards an optimized life</description>
	<lastBuildDate>Mon, 30 Jan 2012 20:53:48 +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>A Quick Tip: Webpage Simplification</title>
		<link>http://www.calcatraz.com/blog/a-quick-tip-webpage-simplification-112?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-quick-tip-webpage-simplification</link>
		<comments>http://www.calcatraz.com/blog/a-quick-tip-webpage-simplification-112#comments</comments>
		<pubDate>Sun, 07 Feb 2010 13:07:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[simplify]]></category>

	<!-- AutoMeta Start -->
	<category>table</category>
	<category>border</category>
	<category>shot</category>
	<category>homepage</category>
	<category>solid</category>
	<category>image</category>
	<category>excess</category>
	<category>screenshots</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.calcatraz.com/blog/?p=112</guid>
		<description><![CDATA[If your web pages have a large number of nested div and table tags you may end up wondering whether they are all really necessary, and whether you might not be able to get by with less. While you could run through your code and assess each one individually and decide if it can be [...]]]></description>
			<content:encoded><![CDATA[<p>If your web pages have a large number of nested div and table tags you may end up wondering whether they are all really necessary, and whether you might not be able to get by with less. While you could run through your code and assess each one individually and decide if it can be removed, there is a quicker, easier way to approach the problem. Simply add the following right at the end of your CSS definitions:</p>
<pre>table { border: 1px solid red; }</pre>
<pre>div { border: 1px solid green; }</pre>
<p>This will draw a border round each div and table on your page and let you visually see which are really necessary. It also works better than looking at each table / div in turn as often each seems necessary; it is only when you look at the big picture that you see that two or more can be combined.</p>
<p>As an illustration, here are the before and after screenshots when I applied this to the Calcatraz homepage. The excess tables / divs can be seen in the before shot (click on the image to see it full size). Notice how I&#8217;ve been able to two of them in the after shot, leading to shorter, cleaner html, with more of the presentation being handled in CSS where it should be.</p>
<p>Before:</p>
<p style="text-align: center;"><a href="http://www.calcatraz.com/calcatraz/blog/wp-content/uploads/2010/02/before1.jpg"><img class="aligncenter size-medium wp-image-116" style="border: 1px solid black;" title="The Calcatraz Homepage - Before" src="http://www.calcatraz.com/calcatraz/blog/wp-content/uploads/2010/02/before1-300x162.jpg" alt="The Calcatraz Homepage - Before" width="300" height="162" /></a></p>
<p>After:</p>
<p style="text-align: center;"><a href="http://www.calcatraz.com/calcatraz/blog/wp-content/uploads/2010/02/after.jpg"><img class="aligncenter size-medium wp-image-117" style="border: 1px solid black;" title="The Calcatraz Homepage - After" src="http://www.calcatraz.com/calcatraz/blog/wp-content/uploads/2010/02/after-300x162.jpg" alt="The Calcatraz Homepage - After" width="300" height="162" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.calcatraz.com/blog/a-quick-tip-webpage-simplification-112/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

