<?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>Corunet. El Blog &#187; css</title>
	<atom:link href="http://blog.corunet.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.corunet.com</link>
	<description>Web development, usability and more</description>
	<lastBuildDate>Fri, 23 Oct 2009 15:33:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automatic CSS: The stylizator</title>
		<link>http://blog.corunet.com/automatic-css-the-stylizator/</link>
		<comments>http://blog.corunet.com/automatic-css-the-stylizator/#comments</comments>
		<pubDate>Wed, 20 Jun 2007 20:15:15 +0000</pubDate>
		<dc:creator>David Pardo</dc:creator>
				<category><![CDATA[CSS and Javascript]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://blog.corunet.com/english/automatic-css-the-stylizator</guid>
		<description><![CDATA[Writing CSS is good fun, but analyzing an html document to find how the page is structured us, at the very least, tiring. If you have ever had to write CSS for a blog or CMS template, you already know how time-consuming is to find every ID and CLASS in a large document. We&#8217;re going [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="/uploads/stylizator/stylizator_p.png" alt="The stylizator" width="150" height="120" />Writing CSS is good fun, but analyzing an html document to find how the page is structured us, at the very least, tiring. If you have ever had to write CSS for a blog or CMS template, you already know how time-consuming is to find every ID and CLASS in a large document. We&#8217;re going to write a simple script that takes an HTML file as input and gives us two things:</p>
<ul>
<li>First, some CSS and Javascript to generate a visual structure with all the names like the one that can be seen at the top image (and a javascript only version!!).</li>
<li> Second, a CSS file without any rules, but with every ID and class in the document.</li>
</ul>
<p>Let&#8217;s go:<br />
<span id="more-33"></span></p>
<h2>The tools</h2>
<p>We need to use any scripting language to read the HTML and act accordingly. This time we&#8217;re going to use perl, since it&#8217;s a simple and powerful language for text managing. It&#8217;s available in most operating systems and for windows users, it&#8217;s downloadable from <a href="http://activestate.com/" onclick="pageTracker._trackPageview('/outgoing/activestate.com/?referer=');">http://activestate.com/ </a>.</p>
<p>It should be possible to write in ruby, python, java or any other programming language. Take it as a guideline or, if you just want to use it, <a href="/uploads/stylizator/stylizator.zip">grab the code</a><br />
We&#8217;re going to use some CSS and Javascript too. Let&#8217;s get wet&#8230;</p>
<h2>Reading and parsing HTML</h2>
<p>First of all, we need an HTML document to be parsed. As I&#8217;ll recall later, I used HTML code from <a href="http://csszengarden.com" onclick="pageTracker._trackPageview('/outgoing/csszengarden.com?referer=');">csszengarden</a> to try the code.<br />
First thing to do is read the html from a file. The script we&#8217;re going starts the following way:</p>
<p class="toggle_code"><a href="/uploads/code/stylizator.1.pl" onclick="jQuery('#code_0').toggle('slow');return false">stylizator.1.pl</a></p>
<div  style="display:none" id="code_0">
<pre class="brush: pl">#!/usr/bin/perl
use strict;
my $file=shift;
die (&quot;HTML file missing&quot;) unless $file=~/\.html?$/;
my $filename=$file;
$filename=~s/\.html?$//;
print &quot;$filename\n&quot;;
open (HTML,$file) || die (&quot;HTML file can&#039;t be opened&quot;);
my @html=&lt;HTML&gt;;
close (HTML);
open(CSS,&quot;&gt;$filename.css&quot;);
open(HTML, &quot;&gt;$filename.structure.html&quot;);
my $html=join(&#039;&#039;,@html);</pre>
</div>
<p>This first part opens a file, reads it and assign the contents to a variable. Now, we need to find all the id&#8217;s present in the file. To do that we could use a full-fledged HTML parser, but since many documents in the real world are not correct and our necessities are quite easy, there&#8217;s a simpler solution. So, regular expressions to the rescue.<br />
Regular expressions find patterns in a file. We can tell perl to find things like /\w+/ and it will match alphanumeric characters. Probably to find named elements it should be enough to write:</p>
<p><code><br />
/id=\"?\w+\"?/i</code></p>
<p>Where &#8220;id=&#8221; means exactly that, \&#8221;? means a possible quotation mark, (\w+) is a group of letters or numbers, another possible quote and the last &#8220;i&#8221; tells us to ignore the case of the text. In this particular case, we&#8217;re going to use a slightly more complicated expression, to take into acount possible missing quotes and so on:</p>
<p><code><br />
/id\s*=\s*"?([^"\s&gt;]+)/<br />
</code></p>
<h2>Creating the CSS template</h2>
<p>We&#8217;re going to write an empty CSS file. I like to use a previously written template that includes links to my CSS-reset file and some more files I always use. Then, for every named element, we need a line:</p>
<p><code><br />
#namedelement{</code></p>
<p>}</p>
<p class="toggle_code"><a href="/uploads/code/stylizator.2.pl" onclick="jQuery('#code_1').toggle('slow');return false">stylizator.2.pl</a></p>
<div  style="display:none" id="code_1">
<pre class="brush: pl">print CSS &quot;\@import url(zero.css);\nbody{\n\n}\n&quot;;
my @id = $html =~ /id\s*=\s*&quot;?([^&quot;\s&gt;]+)/gis;
foreach my $id(@id){
	print &quot;id -&gt; $id\n&quot;;
	print CSS &quot;#&quot;.$id.&quot;{\n\n\t\n}\n&quot;;
}</pre>
</div>
<p>and every time we find a class, since they are not unique, we need to filter it, creating a hash (associative array) with its name. And then, the same thing we&#8217;ve done with the IDs. Some more code:</p>
<p class="toggle_code"><a href="/uploads/code/stylizator.3.pl" onclick="jQuery('#code_2').toggle('slow');return false">stylizator.3.pl</a></p>
<div  style="display:none" id="code_2">
<pre class="brush: pl">my %class;
my @classes = $html =~ /class\s*=\s*&quot;?([^&quot;\s&gt;]+)/gis;
foreach my $class(@classes){
	$class{$class}=&quot;class&quot;;
}
while (my($key, $value)=each(%class)){
	print &quot;$value -&gt; $key\n&quot;;
	print CSS &quot;.$key&quot;.&quot;{\n\n}\n&quot;
}</pre>
</div>
<p>With all that code, we already have a CSS template. You could start right now editing it to suit your needs. But we don&#8217;t know yet what the structure is. Why don&#8217;t we create a new HTML file that shows us how the document is laid? OK. Let&#8217;s write some more code</p>
<h2>Javascript: The magic</h2>
<p>Here is where the fun begins. Probably, I&#8217;ll need to wite another post about this piece of code, since there are a couple of sleights of hand, but, briefly, the following piece of code removes all the stylesheets and the inline CSS rules, then  takes all the elements in the dom and finds the ones that have an ID, and adds a P element with the ID name to each one.</p>
<p class="toggle_code"><a href="/uploads/code/stylizator.js" onclick="jQuery('#code_3').toggle('slow');return false">stylizator.js</a></p>
<div  style="display:none" id="code_3">
<pre class="brush: js">function removeSheets(){
  if(document.styleSheets){
    var c = document.styleSheets.length;
    for(var i=0;i&lt;c;i++){
		document.styleSheets[i].disabled=true;
    }
  }
  findNamedElements();
}
function findNamedElements(){
	allElements = document.getElementsByTagName(&#039;*&#039;);
	for(i=0;i&lt;allElements.length;i++){
		allElements[i].style.cssText = &#039;&#039;;
		if(allElements[i].id){
			allElements[i].style.position = &#039;relative&#039;;
			allElements[i].style.border = &#039;1px solid silver&#039;;
			allElements[i].style.padding = &#039;20px&#039;;
			allElements[i].style.margin = &#039;10px&#039;;
			p=document.createElement(&#039;p&#039;);
			sometext = document.createTextNode(allElements[i].id);
			p.appendChild(sometext);
			p.className = &#039;sign&#039;;
			allElements[i].appendChild(p);
		}
	}
	if (window.innerWidth){
		var styleText = &#039;.sign{border:1px dashed red;position:absolute;top:0;left:0;padding:2px;background-color:#fff}&#039;;
		var head=document.getElementsByTagName(&quot;head&quot;)[0];
		var styleNode = document.createElement(&quot;style&quot;);
		styleNode.appendChild(document.createTextNode(styleText));
		head.appendChild(styleNode);
	}else{
		var newStyle = document.createStyleSheet();
		newStyle.addRule(&#039;.sign&#039;,&#039;border:1px dashed red;position:absolute;top:0;left:0;padding:2px;background-color:#fff&#039;);
	}
}
removeSheets();
</pre>
</div>
<p>As you can see, there are only two functions. The first one, removeSheets(), disables every stylesheet included from the HTML, and then calls the other one, findNamedElements(), This function gets all the elements in the DOM (getElementsByTagName(&#8216;*&#8217;)) and iterates over them, doing a couple of things:</p>
<ul>
<li>First, remove inline style elements (allElements[i].style.cssText = &#8221;)</li>
<li>For the elements with an ID, some styles are added (a silver box around them)</li>
<li>A child P tag with the ID text is created too, giving it a class &#8217;sign&#8217;</li>
</ul>
<p>Then, we create a new stylesheet only for that class. We have to code a different way for Explorer and Firefox/Opera/Others because of compatibility issues.<br />
Last, the function is called with removesheets(). You can even save the code as a bookmarklet and apply it to any website. It&#8217;s truly portable.</p>
<p>Now we need some perl code to insert the javascript into the HTML file, just before the &lt;/body&gt;: tag.<br />
<strong>Update:</strong> My pal Félix has just tol me that I need to add an &#8220;s&#8221; in the javascript substitution, to cope with multi-line javascript. Thanks, Félix</p>
<p class="toggle_code"><a href="/uploads/code/stylizator.4.pl" onclick="jQuery('#code_4').toggle('slow');return false">stylizator.4.pl</a></p>
<div  style="display:none" id="code_4">
<pre class="brush: pl">$html=~s/&lt;script.*?&lt;\/script&gt;//sg;
open (JS,&quot;stylizator.js&quot;) || die(&quot;You also need the file stylizator.js in the same folder&quot;);
my @js=&lt;JS&gt;;
close (JS);
my $js=&#039;&lt;script type=&quot;text/javascript&quot;&gt;&#039;.join(&quot;&quot;,@js).&#039;&lt;/script&gt;&lt;/body&gt;&#039;;
$html=~s/&lt;\/body&gt;/$js/e;
print HTML $html;
close (CSS);
close (HTML);</pre>
</div>
<p>When you run the full script, another HTML file will be generated, that shows how the document is laid.</p>
<h2>Trying it out</h2>
<p>The best example I can think of is <a href="http://csszengarden.com/" onclick="pageTracker._trackPageview('/outgoing/csszengarden.com/?referer=');">CSSzengarden,</a> a site where a default layout is given to designers to skin it the better they can. I downloaded the HTML code (<acronym title="Creative commons, Attribution-NonCommercial-ShareAlike">CC license, by-nc-sa</acronym>) and called he script over it:</p>
<p><code><br />
$&gt; perl stylizator.pl csszengarden.html</code></p>
<p>And I got a csszengarden CSS file, with all the named tags, and a csszengarden.structure.html file with the visual structure of the site.</p>
<p class="toggle_code"><a href="/uploads/code/csszengarden.html" onclick="jQuery('#code_5').toggle('slow');return false">csszengarden.html</a></p>
<div  style="display:none" id="code_5">
<pre class="brush: html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
	&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; &gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
	&lt;meta name=&quot;author&quot; content=&quot;Dave Shea&quot; /&gt;
	&lt;meta name=&quot;keywords&quot; content=&quot;design, css, cascading, style, sheets, xhtml, graphic design, w3c, web standards, visual, display&quot; /&gt;
	&lt;meta name=&quot;description&quot; content=&quot;A demonstration of what can be accomplished visually through CSS-based design.&quot; /&gt;
	&lt;meta name=&quot;robots&quot; content=&quot;all&quot; /&gt;
	&lt;title&gt;css Zen Garden: The Beauty in CSS Design&lt;/title&gt;

	&lt;!-- to correct the unsightly Flash of Unstyled Content. http://www.bluerobot.com/web/css/fouc.asp --&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

	&lt;style type=&quot;text/css&quot; title=&quot;currentStyle&quot; media=&quot;screen&quot;&gt;
		@import &quot;/001/001.css&quot;;
	&lt;/style&gt;
	&lt;link rel=&quot;Shortcut Icon&quot; type=&quot;image/x-icon&quot; href=&quot;http://www.csszengarden.com/favicon.ico&quot; /&gt;
	&lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;RSS&quot; href=&quot;http://www.csszengarden.com/zengarden.xml&quot; /&gt;
&lt;/head&gt;

&lt;!--

	This xhtml document is marked up to provide the designer with the maximum possible flexibility.
	There are more classes and extraneous tags than needed, and in a real world situation, it&#039;s more
	likely that it would be much leaner.

	However, I think we can all agree that even given that, we&#039;re still better off than if this had been
	built with tables.

--&gt;

&lt;body id=&quot;css-zen-garden&quot;&gt;
&lt;div id=&quot;container&quot;&gt;
	&lt;div id=&quot;intro&quot;&gt;
		&lt;div id=&quot;pageHeader&quot;&gt;
			&lt;h1&gt;&lt;span&gt;css Zen Garden&lt;/span&gt;&lt;/h1&gt;
			&lt;h2&gt;&lt;span&gt;The Beauty of &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; Design&lt;/span&gt;&lt;/h2&gt;
		&lt;/div&gt;

		&lt;div id=&quot;quickSummary&quot;&gt;
			&lt;p class=&quot;p1&quot;&gt;&lt;span&gt;A demonstration of what can be accomplished visually through &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt;-based design. Select any style sheet from the list to load it into this page.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p2&quot;&gt;&lt;span&gt;Download the sample &lt;a href=&quot;/zengarden-sample.html&quot; title=&quot;This page&#039;s source HTML code, not to be modified.&quot;&gt;html file&lt;/a&gt; and &lt;a href=&quot;/zengarden-sample.css&quot; title=&quot;This page&#039;s sample CSS, the file you may modify.&quot;&gt;css file&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
		&lt;/div&gt;

		&lt;div id=&quot;preamble&quot;&gt;
			&lt;h3&gt;&lt;span&gt;The Road to Enlightenment&lt;/span&gt;&lt;/h3&gt;
			&lt;p class=&quot;p1&quot;&gt;&lt;span&gt;Littering a dark and dreary road lay the past relics of browser-specific tags, incompatible &lt;acronym title=&quot;Document Object Model&quot;&gt;DOM&lt;/acronym&gt;s, and broken &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; support.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p2&quot;&gt;&lt;span&gt;Today, we must clear the mind of past practices. Web enlightenment has been achieved thanks to the tireless efforts of folk like the &lt;acronym title=&quot;World Wide Web Consortium&quot;&gt;W3C&lt;/acronym&gt;, &lt;acronym title=&quot;Web Standards Project&quot;&gt;WaSP&lt;/acronym&gt; and the major browser creators.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p3&quot;&gt;&lt;span&gt;The css Zen Garden invites you to relax and meditate on the important lessons of the masters. Begin to see with clarity. Learn to use the (yet to be) time-honored techniques in new and invigorating fashion. Become one with the web.&lt;/span&gt;&lt;/p&gt;
		&lt;/div&gt;
	&lt;/div&gt;

	&lt;div id=&quot;supportingText&quot;&gt;
		&lt;div id=&quot;explanation&quot;&gt;
			&lt;h3&gt;&lt;span&gt;So What is This About?&lt;/span&gt;&lt;/h3&gt;
			&lt;p class=&quot;p1&quot;&gt;&lt;span&gt;There is clearly a need for &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; to be taken seriously by graphic artists. The Zen Garden aims to excite, inspire, and encourage participation. To begin, view some of the existing designs in the list. Clicking on any one will load the style sheet into this very page. The code remains the same, the only thing that has changed is the external .css file. Yes, really.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p2&quot;&gt;&lt;span&gt;&lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; allows complete and total control over the style of a hypertext document. The only way this can be illustrated in a way that gets people excited is by demonstrating what it can truly be, once the reins are placed in the hands of those able to create beauty from structure. To date, most examples of neat tricks and hacks have been demonstrated by structurists and coders. Designers have yet to make their mark. This needs to change.&lt;/span&gt;&lt;/p&gt;
		&lt;/div&gt;

		&lt;div id=&quot;participation&quot;&gt;
			&lt;h3&gt;&lt;span&gt;Participation&lt;/span&gt;&lt;/h3&gt;
			&lt;p class=&quot;p1&quot;&gt;&lt;span&gt;Graphic artists only please. You are modifying this page, so strong &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; skills are necessary, but the example files are commented well enough that even &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; novices can use them as starting points. Please see the &lt;a href=&quot;http://www.mezzoblue.com/zengarden/resources/&quot; title=&quot;A listing of CSS-related resources&quot;&gt;&lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; Resource Guide&lt;/a&gt; for advanced tutorials and tips on working with &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt;.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p2&quot;&gt;&lt;span&gt;You may modify the style sheet in any way you wish, but not the &lt;acronym title=&quot;HyperText Markup Language&quot;&gt;HTML&lt;/acronym&gt;. This may seem daunting at first if you&amp;#8217;ve never worked this way before, but follow the listed links to learn more, and use the sample files as a guide.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p3&quot;&gt;&lt;span&gt;Download the sample &lt;a href=&quot;/zengarden-sample.html&quot; title=&quot;This page&#039;s source HTML code, not to be modified.&quot;&gt;html file&lt;/a&gt; and &lt;a href=&quot;/zengarden-sample.css&quot; title=&quot;This page&#039;s sample CSS, the file you may modify.&quot;&gt;css file&lt;/a&gt; to work on a copy locally. Once you have completed your masterpiece (and please, don&amp;#8217;t submit half-finished work) upload your .css file to a web server under your control. &lt;a href=&quot;http://www.mezzoblue.com/zengarden/submit/&quot; title=&quot;Use the contact form to send us your CSS file&quot;&gt;Send us a link&lt;/a&gt; to the file and if we choose to use it, we will spider the associated images. Final submissions will be placed on our server.&lt;/span&gt;&lt;/p&gt;
					&lt;/div&gt;

		&lt;div id=&quot;benefits&quot;&gt;
			&lt;h3&gt;&lt;span&gt;Benefits&lt;/span&gt;&lt;/h3&gt;
			&lt;p class=&quot;p1&quot;&gt;&lt;span&gt;Why participate? For recognition, inspiration, and a resource we can all refer to when making the case for &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt;-based design. This is sorely needed, even today. More and more major sites are taking the leap, but not enough have. One day this gallery will be a historical curiosity; that day is not today.&lt;/span&gt;&lt;/p&gt;
		&lt;/div&gt;

		&lt;div id=&quot;requirements&quot;&gt;
			&lt;h3&gt;&lt;span&gt;Requirements&lt;/span&gt;&lt;/h3&gt;
			&lt;p class=&quot;p1&quot;&gt;&lt;span&gt;We would like to see as much &lt;acronym title=&quot;Cascading Style Sheets, version 1&quot;&gt;CSS1&lt;/acronym&gt; as possible. &lt;acronym title=&quot;Cascading Style Sheets, version 2&quot;&gt;CSS2&lt;/acronym&gt; should be limited to widely-supported elements only. The css Zen Garden is about functional, practical &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; and not the latest bleeding-edge tricks viewable by 2% of the browsing public. The only real requirement we have is that your &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; validates.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p2&quot;&gt;&lt;span&gt;Unfortunately, designing this way highlights the flaws in the various implementations of &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt;. Different browsers display differently, even completely valid &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; at times, and this becomes maddening when a fix for one leads to breakage in another. View the &lt;a href=&quot;http://www.mezzoblue.com/zengarden/resources/&quot; title=&quot;A listing of CSS-related resources&quot;&gt;Resources&lt;/a&gt; page for information on some of the fixes available. Full browser compliance is still sometimes a pipe dream, and we do not expect you to come up with pixel-perfect code across every platform. But do test in as many as you can. If your design doesn&amp;#8217;t work in at least IE5+/Win and Mozilla (run by over 90% of the population), chances are we won&amp;#8217;t accept it.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p3&quot;&gt;&lt;span&gt;We ask that you submit original artwork. Please respect copyright laws. Please keep objectionable material to a minimum; tasteful nudity is acceptable, outright pornography will be rejected.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p4&quot;&gt;&lt;span&gt;This is a learning exercise as well as a demonstration. You retain full copyright on your graphics (with limited exceptions, see &lt;a href=&quot;http://www.mezzoblue.com/zengarden/submit/guidelines/&quot;&gt;submission guidelines&lt;/a&gt;), but we ask you release your &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; under a Creative Commons license identical to the &lt;a href=&quot;http://creativecommons.org/licenses/by-nc-sa/1.0/&quot; title=&quot;View the Zen Garden&#039;s license information.&quot;&gt;one on this site&lt;/a&gt; so that others may learn from your work.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p5&quot;&gt;&lt;span&gt;Bandwidth graciously donated by &lt;a href=&quot;http://www.dreamfirestudios.com/&quot;&gt;DreamFire Studios&lt;/a&gt;. Now available: &lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0321303474/mezzoblue-20/&quot;&gt;Zen Garden, the book&lt;/a&gt;.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
		&lt;/div&gt;

		&lt;div id=&quot;footer&quot;&gt;
			&lt;a href=&quot;http://validator.w3.org/check/referer&quot; title=&quot;Check the validity of this site&amp;#8217;s XHTML&quot;&gt;xhtml&lt;/a&gt; &amp;nbsp;
			&lt;a href=&quot;http://jigsaw.w3.org/css-validator/check/referer&quot; title=&quot;Check the validity of this site&amp;#8217;s CSS&quot;&gt;css&lt;/a&gt; &amp;nbsp;
			&lt;a href=&quot;http://creativecommons.org/licenses/by-nc-sa/1.0/&quot; title=&quot;View details of the license of this site, courtesy of Creative Commons.&quot;&gt;cc&lt;/a&gt; &amp;nbsp;
			&lt;a href=&quot;http://www.contentquality.com/mynewtester/cynthia.exe?Url1=http:%2F%2Fcsszengarden.com%2F&quot; title=&quot;Check the accessibility of this site according to U.S. Section 508&quot;&gt;508&lt;/a&gt; &amp;nbsp;
			&lt;a href=&quot;http://mezzoblue.com/zengarden/faq/#aaa&quot; title=&quot;Check the accessibility of this site according to Web Content Accessibility Guidelines 1.0&quot;&gt;aaa&lt;/a&gt;
		&lt;/div&gt;

	&lt;/div&gt;

	&lt;div id=&quot;linkList&quot;&gt;
		&lt;div id=&quot;linkList2&quot;&gt;
			&lt;div id=&quot;lselect&quot;&gt;
				&lt;h3 class=&quot;select&quot;&gt;&lt;span&gt;Select a Design:&lt;/span&gt;&lt;/h3&gt;
				&lt;ul&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/202/202.css&amp;amp;page=0&quot; title=&quot;AccessKey: a&quot; accesskey=&quot;a&quot;&gt;Retro Theater&lt;/a&gt; by &lt;a href=&quot;http://space-sheeps.info/&quot; class=&quot;c&quot;&gt;Eric Rog&amp;eacute;&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/201/201.css&amp;amp;page=0&quot; title=&quot;AccessKey: b&quot; accesskey=&quot;b&quot;&gt;Lily Pond&lt;/a&gt; by &lt;a href=&quot;http://www.tulips4rose.com&quot; class=&quot;c&quot;&gt;Rose Thorogood&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/200/200.css&amp;amp;page=0&quot; title=&quot;AccessKey: c&quot; accesskey=&quot;c&quot;&gt;Icicle Outback&lt;/a&gt; by &lt;a href=&quot;http://www.timovirtanen.com/&quot; class=&quot;c&quot;&gt;Timo Virtanen&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/199/199.css&amp;amp;page=0&quot; title=&quot;AccessKey: d&quot; accesskey=&quot;d&quot;&gt;Zen Army&lt;/a&gt; by &lt;a href=&quot;http://www.niceguy.com/&quot; class=&quot;c&quot;&gt;Carl Desmond&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/198/198.css&amp;amp;page=0&quot; title=&quot;AccessKey: e&quot; accesskey=&quot;e&quot;&gt;The Original&lt;/a&gt; by &lt;a href=&quot;http://www.bluejam.com/&quot; class=&quot;c&quot;&gt;Joachim Shotter&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/197/197.css&amp;amp;page=0&quot; title=&quot;AccessKey: f&quot; accesskey=&quot;f&quot;&gt;Floral Touch&lt;/a&gt; by &lt;a href=&quot;http://www.jahmasta.com/&quot; class=&quot;c&quot;&gt;Jadas Jimmy&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/196/196.css&amp;amp;page=0&quot; title=&quot;AccessKey: g&quot; accesskey=&quot;g&quot;&gt;Elegance in Simplicity&lt;/a&gt; by &lt;a href=&quot;http://www.manisheriar.com/blog/&quot; class=&quot;c&quot;&gt;Mani Sheriar&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/195/195.css&amp;amp;page=0&quot; title=&quot;AccessKey: h&quot; accesskey=&quot;h&quot;&gt;Dazzling Beauty&lt;/a&gt; by &lt;a href=&quot;http://blog.denysri.com/&quot; class=&quot;c&quot;&gt;Deny Sri Supriyono&lt;/a&gt;&lt;/li&gt;
				&lt;/ul&gt;
			&lt;/div&gt;

			&lt;div id=&quot;larchives&quot;&gt;
				&lt;h3 class=&quot;archives&quot;&gt;&lt;span&gt;Archives:&lt;/span&gt;&lt;/h3&gt;
				&lt;ul&gt;
					&lt;li&gt;&lt;a href=&quot;/?cssfile=/001/001.css&amp;amp;page=1&quot; title=&quot;View next set of designs. AccessKey: n&quot; accesskey=&quot;n&quot;&gt;&lt;span class=&quot;accesskey&quot;&gt;n&lt;/span&gt;ext designs &amp;raquo;&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;http://www.mezzoblue.com/zengarden/alldesigns/&quot; title=&quot;View every submission to the Zen Garden. AccessKey: w&quot; accesskey=&quot;w&quot;&gt;Vie&lt;span class=&quot;accesskey&quot;&gt;w&lt;/span&gt; All Designs&lt;/a&gt;&lt;/li&gt;
				&lt;/ul&gt;
			&lt;/div&gt;

			&lt;div id=&quot;lresources&quot;&gt;
				&lt;h3 class=&quot;resources&quot;&gt;&lt;span&gt;Resources:&lt;/span&gt;&lt;/h3&gt;
				&lt;ul&gt;
					&lt;li&gt;&lt;a href=&quot;/001/001.css&quot; title=&quot;View the source CSS file for the currently-viewed design, AccessKey: v&quot; accesskey=&quot;v&quot;&gt;&lt;span class=&quot;accesskey&quot;&gt;V&lt;/span&gt;iew This Design&amp;#8217;s &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt;&lt;/a&gt;&lt;/li&gt;					&lt;li&gt;&lt;a href=&quot;http://www.mezzoblue.com/zengarden/resources/&quot; title=&quot;Links to great sites with information on using CSS. AccessKey: r&quot; accesskey=&quot;r&quot;&gt;&lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; &lt;span class=&quot;accesskey&quot;&gt;R&lt;/span&gt;esources&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;http://www.mezzoblue.com/zengarden/faq/&quot; title=&quot;A list of Frequently Asked Questions about the Zen Garden. AccessKey: q&quot; accesskey=&quot;q&quot;&gt;&lt;acronym title=&quot;Frequently Asked Questions&quot;&gt;FA&lt;span class=&quot;accesskey&quot;&gt;Q&lt;/span&gt;&lt;/acronym&gt;&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;http://www.mezzoblue.com/zengarden/submit/&quot; title=&quot;Send in your own CSS file. AccessKey: s&quot; accesskey=&quot;s&quot;&gt;&lt;span class=&quot;accesskey&quot;&gt;S&lt;/span&gt;ubmit a Design&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;http://www.mezzoblue.com/zengarden/translations/&quot; title=&quot;View translated versions of this page. AccessKey: t&quot; accesskey=&quot;t&quot;&gt;&lt;span class=&quot;accesskey&quot;&gt;T&lt;/span&gt;ranslations&lt;/a&gt;&lt;/li&gt;
				&lt;/ul&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/div&gt;

&lt;/div&gt;

&lt;!-- These extra divs/spans may be used as catch-alls to add extra imagery. --&gt;
&lt;div id=&quot;extraDiv1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div id=&quot;extraDiv2&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div id=&quot;extraDiv3&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
XXXX
&lt;/body&gt;
&lt;/html&gt;</pre>
</div>
<p class="toggle_code"><a href="/uploads/code/csszengarden.structure.html" onclick="jQuery('#code_6').toggle('slow');return false">csszengarden.structure.html</a></p>
<div  style="display:none" id="code_6">
<pre class="brush: html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
	&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; &gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
	&lt;meta name=&quot;author&quot; content=&quot;Dave Shea&quot; /&gt;
	&lt;meta name=&quot;keywords&quot; content=&quot;design, css, cascading, style, sheets, xhtml, graphic design, w3c, web standards, visual, display&quot; /&gt;
	&lt;meta name=&quot;description&quot; content=&quot;A demonstration of what can be accomplished visually through CSS-based design.&quot; /&gt;
	&lt;meta name=&quot;robots&quot; content=&quot;all&quot; /&gt;
	&lt;title&gt;css Zen Garden: The Beauty in CSS Design&lt;/title&gt;

	&lt;!-- to correct the unsightly Flash of Unstyled Content. http://www.bluerobot.com/web/css/fouc.asp --&gt;

	&lt;style type=&quot;text/css&quot; title=&quot;currentStyle&quot; media=&quot;screen&quot;&gt;
		@import &quot;/001/001.css&quot;;
	&lt;/style&gt;
	&lt;link rel=&quot;Shortcut Icon&quot; type=&quot;image/x-icon&quot; href=&quot;http://www.csszengarden.com/favicon.ico&quot; /&gt;
	&lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;RSS&quot; href=&quot;http://www.csszengarden.com/zengarden.xml&quot; /&gt;
&lt;/head&gt;

&lt;!--

	This xhtml document is marked up to provide the designer with the maximum possible flexibility.
	There are more classes and extraneous tags than needed, and in a real world situation, it&#039;s more
	likely that it would be much leaner.

	However, I think we can all agree that even given that, we&#039;re still better off than if this had been
	built with tables.

--&gt;

&lt;body id=&quot;css-zen-garden&quot;&gt;
&lt;div id=&quot;container&quot;&gt;
	&lt;div id=&quot;intro&quot;&gt;
		&lt;div id=&quot;pageHeader&quot;&gt;
			&lt;h1&gt;&lt;span&gt;css Zen Garden&lt;/span&gt;&lt;/h1&gt;
			&lt;h2&gt;&lt;span&gt;The Beauty of &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; Design&lt;/span&gt;&lt;/h2&gt;
		&lt;/div&gt;

		&lt;div id=&quot;quickSummary&quot;&gt;
			&lt;p class=&quot;p1&quot;&gt;&lt;span&gt;A demonstration of what can be accomplished visually through &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt;-based design. Select any style sheet from the list to load it into this page.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p2&quot;&gt;&lt;span&gt;Download the sample &lt;a href=&quot;/zengarden-sample.html&quot; title=&quot;This page&#039;s source HTML code, not to be modified.&quot;&gt;html file&lt;/a&gt; and &lt;a href=&quot;/zengarden-sample.css&quot; title=&quot;This page&#039;s sample CSS, the file you may modify.&quot;&gt;css file&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
		&lt;/div&gt;

		&lt;div id=&quot;preamble&quot;&gt;
			&lt;h3&gt;&lt;span&gt;The Road to Enlightenment&lt;/span&gt;&lt;/h3&gt;
			&lt;p class=&quot;p1&quot;&gt;&lt;span&gt;Littering a dark and dreary road lay the past relics of browser-specific tags, incompatible &lt;acronym title=&quot;Document Object Model&quot;&gt;DOM&lt;/acronym&gt;s, and broken &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; support.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p2&quot;&gt;&lt;span&gt;Today, we must clear the mind of past practices. Web enlightenment has been achieved thanks to the tireless efforts of folk like the &lt;acronym title=&quot;World Wide Web Consortium&quot;&gt;W3C&lt;/acronym&gt;, &lt;acronym title=&quot;Web Standards Project&quot;&gt;WaSP&lt;/acronym&gt; and the major browser creators.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p3&quot;&gt;&lt;span&gt;The css Zen Garden invites you to relax and meditate on the important lessons of the masters. Begin to see with clarity. Learn to use the (yet to be) time-honored techniques in new and invigorating fashion. Become one with the web.&lt;/span&gt;&lt;/p&gt;
		&lt;/div&gt;
	&lt;/div&gt;

	&lt;div id=&quot;supportingText&quot;&gt;
		&lt;div id=&quot;explanation&quot;&gt;
			&lt;h3&gt;&lt;span&gt;So What is This About?&lt;/span&gt;&lt;/h3&gt;
			&lt;p class=&quot;p1&quot;&gt;&lt;span&gt;There is clearly a need for &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; to be taken seriously by graphic artists. The Zen Garden aims to excite, inspire, and encourage participation. To begin, view some of the existing designs in the list. Clicking on any one will load the style sheet into this very page. The code remains the same, the only thing that has changed is the external .css file. Yes, really.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p2&quot;&gt;&lt;span&gt;&lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; allows complete and total control over the style of a hypertext document. The only way this can be illustrated in a way that gets people excited is by demonstrating what it can truly be, once the reins are placed in the hands of those able to create beauty from structure. To date, most examples of neat tricks and hacks have been demonstrated by structurists and coders. Designers have yet to make their mark. This needs to change.&lt;/span&gt;&lt;/p&gt;
		&lt;/div&gt;

		&lt;div id=&quot;participation&quot;&gt;
			&lt;h3&gt;&lt;span&gt;Participation&lt;/span&gt;&lt;/h3&gt;
			&lt;p class=&quot;p1&quot;&gt;&lt;span&gt;Graphic artists only please. You are modifying this page, so strong &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; skills are necessary, but the example files are commented well enough that even &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; novices can use them as starting points. Please see the &lt;a href=&quot;http://www.mezzoblue.com/zengarden/resources/&quot; title=&quot;A listing of CSS-related resources&quot;&gt;&lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; Resource Guide&lt;/a&gt; for advanced tutorials and tips on working with &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt;.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p2&quot;&gt;&lt;span&gt;You may modify the style sheet in any way you wish, but not the &lt;acronym title=&quot;HyperText Markup Language&quot;&gt;HTML&lt;/acronym&gt;. This may seem daunting at first if you&amp;#8217;ve never worked this way before, but follow the listed links to learn more, and use the sample files as a guide.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p3&quot;&gt;&lt;span&gt;Download the sample &lt;a href=&quot;/zengarden-sample.html&quot; title=&quot;This page&#039;s source HTML code, not to be modified.&quot;&gt;html file&lt;/a&gt; and &lt;a href=&quot;/zengarden-sample.css&quot; title=&quot;This page&#039;s sample CSS, the file you may modify.&quot;&gt;css file&lt;/a&gt; to work on a copy locally. Once you have completed your masterpiece (and please, don&amp;#8217;t submit half-finished work) upload your .css file to a web server under your control. &lt;a href=&quot;http://www.mezzoblue.com/zengarden/submit/&quot; title=&quot;Use the contact form to send us your CSS file&quot;&gt;Send us a link&lt;/a&gt; to the file and if we choose to use it, we will spider the associated images. Final submissions will be placed on our server.&lt;/span&gt;&lt;/p&gt;
					&lt;/div&gt;

		&lt;div id=&quot;benefits&quot;&gt;
			&lt;h3&gt;&lt;span&gt;Benefits&lt;/span&gt;&lt;/h3&gt;
			&lt;p class=&quot;p1&quot;&gt;&lt;span&gt;Why participate? For recognition, inspiration, and a resource we can all refer to when making the case for &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt;-based design. This is sorely needed, even today. More and more major sites are taking the leap, but not enough have. One day this gallery will be a historical curiosity; that day is not today.&lt;/span&gt;&lt;/p&gt;
		&lt;/div&gt;

		&lt;div id=&quot;requirements&quot;&gt;
			&lt;h3&gt;&lt;span&gt;Requirements&lt;/span&gt;&lt;/h3&gt;
			&lt;p class=&quot;p1&quot;&gt;&lt;span&gt;We would like to see as much &lt;acronym title=&quot;Cascading Style Sheets, version 1&quot;&gt;CSS1&lt;/acronym&gt; as possible. &lt;acronym title=&quot;Cascading Style Sheets, version 2&quot;&gt;CSS2&lt;/acronym&gt; should be limited to widely-supported elements only. The css Zen Garden is about functional, practical &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; and not the latest bleeding-edge tricks viewable by 2% of the browsing public. The only real requirement we have is that your &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; validates.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p2&quot;&gt;&lt;span&gt;Unfortunately, designing this way highlights the flaws in the various implementations of &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt;. Different browsers display differently, even completely valid &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; at times, and this becomes maddening when a fix for one leads to breakage in another. View the &lt;a href=&quot;http://www.mezzoblue.com/zengarden/resources/&quot; title=&quot;A listing of CSS-related resources&quot;&gt;Resources&lt;/a&gt; page for information on some of the fixes available. Full browser compliance is still sometimes a pipe dream, and we do not expect you to come up with pixel-perfect code across every platform. But do test in as many as you can. If your design doesn&amp;#8217;t work in at least IE5+/Win and Mozilla (run by over 90% of the population), chances are we won&amp;#8217;t accept it.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p3&quot;&gt;&lt;span&gt;We ask that you submit original artwork. Please respect copyright laws. Please keep objectionable material to a minimum; tasteful nudity is acceptable, outright pornography will be rejected.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p4&quot;&gt;&lt;span&gt;This is a learning exercise as well as a demonstration. You retain full copyright on your graphics (with limited exceptions, see &lt;a href=&quot;http://www.mezzoblue.com/zengarden/submit/guidelines/&quot;&gt;submission guidelines&lt;/a&gt;), but we ask you release your &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; under a Creative Commons license identical to the &lt;a href=&quot;http://creativecommons.org/licenses/by-nc-sa/1.0/&quot; title=&quot;View the Zen Garden&#039;s license information.&quot;&gt;one on this site&lt;/a&gt; so that others may learn from your work.&lt;/span&gt;&lt;/p&gt;
			&lt;p class=&quot;p5&quot;&gt;&lt;span&gt;Bandwidth graciously donated by &lt;a href=&quot;http://www.dreamfirestudios.com/&quot;&gt;DreamFire Studios&lt;/a&gt;. Now available: &lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0321303474/mezzoblue-20/&quot;&gt;Zen Garden, the book&lt;/a&gt;.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
		&lt;/div&gt;

		&lt;div id=&quot;footer&quot;&gt;
			&lt;a href=&quot;http://validator.w3.org/check/referer&quot; title=&quot;Check the validity of this site&amp;#8217;s XHTML&quot;&gt;xhtml&lt;/a&gt; &amp;nbsp;
			&lt;a href=&quot;http://jigsaw.w3.org/css-validator/check/referer&quot; title=&quot;Check the validity of this site&amp;#8217;s CSS&quot;&gt;css&lt;/a&gt; &amp;nbsp;
			&lt;a href=&quot;http://creativecommons.org/licenses/by-nc-sa/1.0/&quot; title=&quot;View details of the license of this site, courtesy of Creative Commons.&quot;&gt;cc&lt;/a&gt; &amp;nbsp;
			&lt;a href=&quot;http://www.contentquality.com/mynewtester/cynthia.exe?Url1=http:%2F%2Fcsszengarden.com%2F&quot; title=&quot;Check the accessibility of this site according to U.S. Section 508&quot;&gt;508&lt;/a&gt; &amp;nbsp;
			&lt;a href=&quot;http://mezzoblue.com/zengarden/faq/#aaa&quot; title=&quot;Check the accessibility of this site according to Web Content Accessibility Guidelines 1.0&quot;&gt;aaa&lt;/a&gt;
		&lt;/div&gt;

	&lt;/div&gt;

	&lt;div id=&quot;linkList&quot;&gt;
		&lt;div id=&quot;linkList2&quot;&gt;
			&lt;div id=&quot;lselect&quot;&gt;
				&lt;h3 class=&quot;select&quot;&gt;&lt;span&gt;Select a Design:&lt;/span&gt;&lt;/h3&gt;
				&lt;ul&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/202/202.css&amp;amp;page=0&quot; title=&quot;AccessKey: a&quot; accesskey=&quot;a&quot;&gt;Retro Theater&lt;/a&gt; by &lt;a href=&quot;http://space-sheeps.info/&quot; class=&quot;c&quot;&gt;Eric Rog&amp;eacute;&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/201/201.css&amp;amp;page=0&quot; title=&quot;AccessKey: b&quot; accesskey=&quot;b&quot;&gt;Lily Pond&lt;/a&gt; by &lt;a href=&quot;http://www.tulips4rose.com&quot; class=&quot;c&quot;&gt;Rose Thorogood&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/200/200.css&amp;amp;page=0&quot; title=&quot;AccessKey: c&quot; accesskey=&quot;c&quot;&gt;Icicle Outback&lt;/a&gt; by &lt;a href=&quot;http://www.timovirtanen.com/&quot; class=&quot;c&quot;&gt;Timo Virtanen&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/199/199.css&amp;amp;page=0&quot; title=&quot;AccessKey: d&quot; accesskey=&quot;d&quot;&gt;Zen Army&lt;/a&gt; by &lt;a href=&quot;http://www.niceguy.com/&quot; class=&quot;c&quot;&gt;Carl Desmond&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/198/198.css&amp;amp;page=0&quot; title=&quot;AccessKey: e&quot; accesskey=&quot;e&quot;&gt;The Original&lt;/a&gt; by &lt;a href=&quot;http://www.bluejam.com/&quot; class=&quot;c&quot;&gt;Joachim Shotter&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/197/197.css&amp;amp;page=0&quot; title=&quot;AccessKey: f&quot; accesskey=&quot;f&quot;&gt;Floral Touch&lt;/a&gt; by &lt;a href=&quot;http://www.jahmasta.com/&quot; class=&quot;c&quot;&gt;Jadas Jimmy&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/196/196.css&amp;amp;page=0&quot; title=&quot;AccessKey: g&quot; accesskey=&quot;g&quot;&gt;Elegance in Simplicity&lt;/a&gt; by &lt;a href=&quot;http://www.manisheriar.com/blog/&quot; class=&quot;c&quot;&gt;Mani Sheriar&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;?cssfile=/195/195.css&amp;amp;page=0&quot; title=&quot;AccessKey: h&quot; accesskey=&quot;h&quot;&gt;Dazzling Beauty&lt;/a&gt; by &lt;a href=&quot;http://blog.denysri.com/&quot; class=&quot;c&quot;&gt;Deny Sri Supriyono&lt;/a&gt;&lt;/li&gt;
				&lt;/ul&gt;
			&lt;/div&gt;

			&lt;div id=&quot;larchives&quot;&gt;
				&lt;h3 class=&quot;archives&quot;&gt;&lt;span&gt;Archives:&lt;/span&gt;&lt;/h3&gt;
				&lt;ul&gt;
					&lt;li&gt;&lt;a href=&quot;/?cssfile=/001/001.css&amp;amp;page=1&quot; title=&quot;View next set of designs. AccessKey: n&quot; accesskey=&quot;n&quot;&gt;&lt;span class=&quot;accesskey&quot;&gt;n&lt;/span&gt;ext designs &amp;raquo;&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;http://www.mezzoblue.com/zengarden/alldesigns/&quot; title=&quot;View every submission to the Zen Garden. AccessKey: w&quot; accesskey=&quot;w&quot;&gt;Vie&lt;span class=&quot;accesskey&quot;&gt;w&lt;/span&gt; All Designs&lt;/a&gt;&lt;/li&gt;
				&lt;/ul&gt;
			&lt;/div&gt;

			&lt;div id=&quot;lresources&quot;&gt;
				&lt;h3 class=&quot;resources&quot;&gt;&lt;span&gt;Resources:&lt;/span&gt;&lt;/h3&gt;
				&lt;ul&gt;
					&lt;li&gt;&lt;a href=&quot;/001/001.css&quot; title=&quot;View the source CSS file for the currently-viewed design, AccessKey: v&quot; accesskey=&quot;v&quot;&gt;&lt;span class=&quot;accesskey&quot;&gt;V&lt;/span&gt;iew This Design&amp;#8217;s &lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt;&lt;/a&gt;&lt;/li&gt;					&lt;li&gt;&lt;a href=&quot;http://www.mezzoblue.com/zengarden/resources/&quot; title=&quot;Links to great sites with information on using CSS. AccessKey: r&quot; accesskey=&quot;r&quot;&gt;&lt;acronym title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/acronym&gt; &lt;span class=&quot;accesskey&quot;&gt;R&lt;/span&gt;esources&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;http://www.mezzoblue.com/zengarden/faq/&quot; title=&quot;A list of Frequently Asked Questions about the Zen Garden. AccessKey: q&quot; accesskey=&quot;q&quot;&gt;&lt;acronym title=&quot;Frequently Asked Questions&quot;&gt;FA&lt;span class=&quot;accesskey&quot;&gt;Q&lt;/span&gt;&lt;/acronym&gt;&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;http://www.mezzoblue.com/zengarden/submit/&quot; title=&quot;Send in your own CSS file. AccessKey: s&quot; accesskey=&quot;s&quot;&gt;&lt;span class=&quot;accesskey&quot;&gt;S&lt;/span&gt;ubmit a Design&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;http://www.mezzoblue.com/zengarden/translations/&quot; title=&quot;View translated versions of this page. AccessKey: t&quot; accesskey=&quot;t&quot;&gt;&lt;span class=&quot;accesskey&quot;&gt;T&lt;/span&gt;ranslations&lt;/a&gt;&lt;/li&gt;
				&lt;/ul&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/div&gt;

&lt;/div&gt;

&lt;!-- These extra divs/spans may be used as catch-alls to add extra imagery. --&gt;
&lt;div id=&quot;extraDiv1&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div id=&quot;extraDiv2&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div id=&quot;extraDiv3&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function removeSheets(){
  if(document.styleSheets){
    var c = document.styleSheets.length;
    for(var i=0;i&lt;c;i++){
		document.styleSheets[i].disabled=true;
    }
  }
  findNamedElements();
}
function findNamedElements(){
	allElements = document.getElementsByTagName(&#039;*&#039;);
	for(i=0;i&lt;allElements.length;i++){
		allElements[i].style.cssText = &#039;&#039;;
		if(allElements[i].id){
			allElements[i].style.position = &#039;relative&#039;;
			allElements[i].style.border = &#039;1px solid silver&#039;;
			allElements[i].style.padding = &#039;20px&#039;;
			allElements[i].style.margin = &#039;10px&#039;;
			p=document.createElement(&#039;p&#039;);
			sometext = document.createTextNode(allElements[i].id);
			p.appendChild(sometext);
			p.className = &#039;cartel&#039;;
			allElements[i].appendChild(p);
		}
	}
	if (window.innerWidth){
		var styleText = &#039;.cartel{border:1px dashed red;position:absolute;top:0;left:0;padding:2px;background-color:#fff}&#039;;
		var head=document.getElementsByTagName(&quot;head&quot;)[0];
		var styleNode = document.createElement(&quot;style&quot;);
		styleNode.appendChild(document.createTextNode(styleText));
		head.appendChild(styleNode);
	}else{
		var newStyle = document.createStyleSheet();
		newStyle.addRule(&#039;.cartel&#039;,&#039;border:1px dashed red;position:absolute;top:0;left:0;padding:2px;background-color:#fff&#039;);
	}
}
removeSheets();
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
</div>
<p class="toggle_code"><a href="/uploads/code/csszengarden.css" onclick="jQuery('#code_7').toggle('slow');return false">csszengarden.css</a></p>
<div  style="display:none" id="code_7">
<pre class="brush: css">@import url(zero.css);body{text-align:center;}#css-zen-garden{

}
#container{

}
#intro{

}
#pageHeader{

}
#quickSummary{

}
#preamble{

}
#supportingText{

}
#explanation{

}
#participation{

}
#benefits{

}
#requirements{

}
#footer{

}
#linkList{

}
#linkList2{

}
#lselect{

}
#larchives{

}
#lresources{

}
#extraDiv1{

}
#extraDiv2{

}
#extraDiv3{

}
.supportingText{

}
.benefits{

}
.extraDiv3{

}
.extraDiv2{

}
.lselect{

}
.footer{

}
.larchives{

}
.lresources{

}
.linkList{

}
.intro{

}
.preamble{

}
.container{

}
.requirements{

}
.css-zen-garden{

}
.quickSummary{

}
.explanation{

}
.pageHeader{

}
.extraDiv1{

}
.linkList2{

}
.participation{

}
</pre>
</div>
<p>Something like this. Click to expand(PNG 239KB):<br />
<a href="/uploads/stylizator/stylizator.large.png"><img src="/uploads/stylizator/stylizator.large_p.png" alt="" /></a></p>
<h2>The code</h2>
<p>Download <a href="/uploads/stylizator/stylizator.zip">this file</a>, unzip it in the same folder and call it via &gt;perl stylizator.pl yourhtmlfile.html<br />
It&#8217;ll create a file named yourhtmlfile.css and another one called yourhtmlfile.structure.html</p>
<h2>Further work</h2>
<p>There&#8217;s so much to be done. It could be possible to create a firefox extension that gives us the same visual result at the press of a button, or a system that keeps only structural CSS, discarding type and colors. The regular expressions could be better, too, to allow not-so-well-defined documents.  If you have any further questions, drop me a line to <a href="mailto:david@corunet.com">david@corunet.com</a>.</p>
<p>Have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.corunet.com/automatic-css-the-stylizator/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Three column layout with full page height</title>
		<link>http://blog.corunet.com/three-column-layout-with-full-page-height/</link>
		<comments>http://blog.corunet.com/three-column-layout-with-full-page-height/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 19:36:56 +0000</pubDate>
		<dc:creator>David Pardo</dc:creator>
				<category><![CDATA[CSS and Javascript]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.corunet.com/english/three-column-layout-with-full-page-height</guid>
		<description><![CDATA[
Sometimes I wish I could do things that were easily done with table-based layouts but quite hard using just CSS.
Following a couple of posts in a CSS related Spanish mailing list (Ovillo),  a guy called Zafonic showed me how to use negative margins and positive paddings to make equal sized columns. With a couple [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-thumbnail wp-image-90 alignleft" title="3" src="http://blog.corunet.com/wp-content/uploads/2007/06/3-150x150.png" alt="The final result" width="150" height="150" /></p>
<p>Sometimes I wish I could do things that were easily done with table-based layouts but quite hard using just CSS.<br />
Following a couple of posts in a CSS related Spanish mailing list (Ovillo),  a guy called Zafonic showed me how to use negative margins and positive paddings to make equal sized columns. With a couple javascript functions, I patched it to fill the full browser window. Let&#8217;s see how&#8230;<br />
<strong>Update:</strong> Error in code solved. Thanks to the testers<span id="more-64"></span></p>
<h2>The problem</h2>
<p>We&#8217;re going to write a three-column plus footer layout that covers all the browser space. The requisites are the following:</p>
<ul>
<li>The three columns will have different background colors</li>
<li>We&#8217;re not going to use background images (so, no <a href="http://alistapart.com/articles/fauxcolumns/" onclick="pageTracker._trackPageview('/outgoing/alistapart.com/articles/fauxcolumns/?referer=');">faux-columns</a>)</li>
<li>We want the page to cover the full height of the browser. So, the footer will be at the bottom of the screen.</li>
<li>The layout has to degrade gracefully for javascript disabled browsers</li>
<li>All the code has to be valid and accesible</li>
</ul>
<h2>The beginning</h2>
<p>The first part is simple. We need some html that defines three columns and a footer. Lets wrap the three columns within a div (called, by the way, container) and call the three columns col1, col2 and col3. The html code will be something like:</p>
<p class="toggle_code"><a href="/uploads/code/body.html" onclick="jQuery('#code_0').toggle('slow');return false">body.html</a></p>
<div  style="display:none" id="code_0">
<pre class="brush: html">&lt;body&gt;
	&lt;div id=&quot;container&quot;&gt;
		&lt;div id=&quot;col1&quot;&gt;
			first column&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;
		&lt;/div&gt;
		&lt;div id=&quot;col2&quot;&gt;
			second column&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-
		&lt;/div&gt;
		&lt;div id=&quot;col3&quot;&gt;
			third column&lt;br /&gt;-&lt;br /&gt;-
		&lt;/div&gt;
	&lt;/div&gt;
	 &lt;div id=&quot;footer&quot;&gt;footer&lt;br /&gt;-&lt;/div&gt;
&lt;/body&gt;
</pre>
</div>
<p>We need to give the columns a width and float them to the left. The css would be:</p>
<p class="toggle_code"><a href="/uploads/code/first.css" onclick="jQuery('#code_1').toggle('slow');return false">first.css</a></p>
<div  style="display:none" id="code_1">
<pre class="brush: css">body{
	margin:0 auto;
}
#col1{
	background-color:red;
	width:20%;
	float:left;
}
#col2{
	background-color:blue;
	width:60%;
	float:left;
}
#col3{
	background-color:yellow;
	width:20%;
	float:left;
}
#footer{
	height:40px;
	clear:both;
	background-color:black;
	color:white;
	width:100%;
}
</pre>
</div>
<p>So, we already have a three column layout, but each column has a diferent height and the footer is far from the bottom:</p>
<p><img src="/uploads/threecolumns/1.png" alt="first version" /></p>
<h2>Negative margins to the rescue</h2>
<p>As I already told you, I had&#8217;t heard about creating layouts using negative margins (I should have read <a href="http://alistapart.com/articles/negativemargins" onclick="pageTracker._trackPageview('/outgoing/alistapart.com/articles/negativemargins?referer=');">this article from A List Apart</a> some time ago). In a nutshell, it says that you can use a large negative margin and the opposite positive padding to &#8220;make room for the columns&#8221;. I recommend to read it if you haven&#8217;t, it&#8217;s very useful.<br />
So, let&#8217;s go on the code. We&#8217;re going to add a -5000 pixel margin-bottom and a 5000 pixel padding-bottom to each column:</p>
<p class="toggle_code"><a href="/uploads/code/second.css" onclick="jQuery('#code_2').toggle('slow');return false">second.css</a></p>
<div  style="display:none" id="code_2">
<pre class="brush: css">body{
	margin:0 auto;
}
#col1{
	background-color:red;
	width:20%;
	float:left;
	margin-bottom:-5000px;
 	padding-bottom:5000px;
}
#col2{
	background-color:blue;
	width:60%;
	float:left;
	margin-bottom:-5000px;
 	padding-bottom:5000px;
}
#col3{
	background-color:yellow;
	width:20%;
	float:left;
	margin-bottom:-5000px;
 	padding-bottom:5000px;
}
#footer{
	height:40px;
	clear:both;
	background-color:black;
	color:white;
	width:100%;
	margin-bottom:-5000px;
 	padding-bottom:5000px;
}
</pre>
</div>
<p>This way we get same height columns. This looks much better:</p>
<p><img src="/uploads/threecolumns/2.png" alt="second version" /></p>
<p>but we don&#8217;t have 100% height yet. Internet explorer supports 100% height but all the other browsers don&#8217;t. So, we&#8217;ll need to use javascript to solve it:</p>
<h2>Filling the screen &#8211; Here comes Javascript</h2>
<p>The first thing we need is to find the height of the browser window. I use a small javascript function that takes into account the diferent behaviours of the different browsers:</p>
<p class="toggle_code"><a href="/uploads/code/height.js" onclick="jQuery('#code_3').toggle('slow');return false">height.js</a></p>
<div  style="display:none" id="code_3">
<pre class="brush: js">function windowHeight(){
	var alto= 0;
	if( typeof( window.innerWidth ) == &#039;number&#039; ) {
		alto= window.innerHeight;
	} else if( document.documentElement &amp;&amp; ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		alto= document.documentElement.clientHeight;
	} else if( document.body &amp;&amp; ( document.body.clientWidth || document.body.clientHeight ) ) {
		alto= document.body.clientHeight;
	}
	return alto;
}
</pre>
</div>
<p>This function returns the height of the browser window. It does one thing and does it well&#8230; Using this new knokledge, we can set the height of the columns, making them the browser&#8217;s window height minus the footer, to fill the screen completely. The other function we&#8217;ll need is:</p>
<p class="toggle_code"><a href="/uploads/code/fill.js" onclick="jQuery('#code_4').toggle('slow');return false">fill.js</a></p>
<div  style="display:none" id="code_4">
<pre class="brush: js">function fillthescreen(){
	winH = windowHeight(); //This returns the screen heigth
	heightNeeded=winH-40; //We need to substract the footer height
	if( typeof( window.innerWidth ) != &#039;number&#039; ) { //Explorer doesn&#039;t recognize minHeight
		document.getElementById(&#039;co11&#039;).style.height=heightNeeded+&#039;px&#039;; //So, we use height (and explroer bug)
	}
	document.getElementById(&#039;col1&#039;).style.minHeight=heightNeeded+&#039;px&#039;; //For every other browser, we use minHeight
}
</pre>
</div>
<p>This function works by calling the last one (windowHeight) and substracting the footer size. If we&#8217;re in Explorer, we use style.height to modify the height of the columns and in all other browsers, minHeight, since Explorer doesn&#8217;t support that attribute. We&#8217;re going to call that function via onload.<br />
And we get this:</p>
<p><img src="/uploads/threecolumns/3.png" alt="third version" /></p>
<p>If the window is not tall enough to fit the column height, the page behaves normally:</p>
<p><img src="/uploads/threecolumns/4.png" alt="small screen" /></p>
<h2>The full code</h2>
<p>Putting all together, this is what we get:</p>
<p class="toggle_code"><a href="/uploads/code/3.html" onclick="jQuery('#code_5').toggle('slow');return false">3.html</a></p>
<div  style="display:none" id="code_5">
<pre class="brush: html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Demo three columns&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
	function fillthescreen(){
		winH = windowHeight(); //This returns the screen heigth
		heightNeeded=winH-40; //We need to substract the footer height
		if( typeof( window.innerWidth ) != &#039;number&#039; ) { //Explorer doesn&#039;t recognize minHeight
			document.getElementById(&#039;col1&#039;).style.height=heightNeeded+&#039;px&#039;; //So, we use height (and explroer bug)
		}
		document.getElementById(&#039;col1&#039;).style.minHeight=heightNeeded+&#039;px&#039;; //For every other browser, we use minHeight
	}

	function windowHeight(){
		var alto= 0;
		if( typeof( window.innerWidth ) == &#039;number&#039; ) {
			alto= window.innerHeight;
		} else if( document.documentElement &amp;&amp; ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			alto= document.documentElement.clientHeight;
		} else if( document.body &amp;&amp; ( document.body.clientWidth || document.body.clientHeight ) ) {
			alto= document.body.clientHeight;
		}
		return alto;
	}
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
body{
	margin:0 auto;
}
#container{
 overflow:hidden;
}
#col1{
 background-color:red;
 width:20%;
 float:left;
margin-bottom:-5000px;
 padding-bottom:5000px;
 }
#col2{
 background-color:blue;
 width:60%;
 float:left;
margin-bottom:-5000px;
 padding-bottom:5000px;
 }
#col3{
 background-color:yellow;
 width:20%;
 float:left;
margin-bottom:-5000px;
 padding-bottom:5000px;
 }
#footer{
	height:40px;
 clear:both;
 float:none;
 background-color:black;
 color:white;
 width:100%;
}

&lt;/style&gt;
&lt;/head&gt;

&lt;body onload=&quot;fillthescreen()&quot;&gt;
	&lt;div id=&quot;container&quot;&gt;
		&lt;div id=&quot;col1&quot;&gt;
			first column&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;
		&lt;/div&gt;
		&lt;div id=&quot;col2&quot;&gt;
			second column&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-&lt;br /&gt;-
		&lt;/div&gt;
		&lt;div id=&quot;col3&quot;&gt;
			third column&lt;br /&gt;-&lt;br /&gt;-
		&lt;/div&gt;
	&lt;/div&gt;
	 &lt;div id=&quot;footer&quot;&gt;footer&lt;br /&gt;-&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
</div>
<p>If you use it in a production environment, it&#8217;d be wise to split the javascript and the CSS into their own files, and review all the code, since it&#8217;s done in a quick and dirty way.</p>
<p>You can download the code using <a href="/uploads/threecolumns/3.zip">this link</a>. People without javascript don&#8217;t get the full height but the site is equally usable and visually pleasant. I you have any further questions or just want to talk, drop me a line to <a href="maito:david@corunet.com">david@corunet.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.corunet.com/three-column-layout-with-full-page-height/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
