<?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>Dave Russell &#187; html</title>
	<atom:link href="http://daverussell.co.za/wordpress/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://daverussell.co.za/wordpress</link>
	<description>Helping me remember and hopefully helping others at the same time.</description>
	<lastBuildDate>Thu, 14 Apr 2011 07:16:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>A truly versatile three column template</title>
		<link>http://daverussell.co.za/wordpress/2011/04/11/a-truly-versatile-three-column-template/</link>
		<comments>http://daverussell.co.za/wordpress/2011/04/11/a-truly-versatile-three-column-template/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 13:30:23 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Three column layout]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=226</guid>
		<description><![CDATA[There are hundreds of 3 column templates out there, so what&#8217;s one more right? Well the difference here is that this one template can handle 1,2 or 3 columns, purely dependent on the existence of the columns on the html. So, if you have a CMS system and you generate a left or right column, [...]]]></description>
			<content:encoded><![CDATA[<p>There are hundreds of 3 column templates out there, so what&#8217;s one more right? Well the difference here is that this one template can handle 1,2 or 3 columns, purely dependent on the existence of the columns on the html. So, if you have a CMS system and you generate a left or right column, then it will be rendered correctly, but if not then the content will stretch accordingly.</p>
<p>First we need some structure</p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;skin&quot;</span> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;align rel&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;page&quot;</span> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;abs&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;main&quot;</span> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;column&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/h1.html"><span class="kw2">h1</span></a>&gt;</span>Heading<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/h1.html"><span class="kw2">h1</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;startcontent&quot;</span> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/p.html"><span class="kw2">p</span></a>&gt;</span>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. <span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/p.html"><span class="kw2">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/p.html"><span class="kw2">p</span></a>&gt;</span>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form.<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/p.html"><span class="kw2">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;rel&quot;</span> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;footer&quot;</span>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span class="kw2">p</span></a>&gt;</span>footer<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/p.html"><span class="kw2">p</span></a>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&#8216;left&#8217;</span> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&#8216;column abs leftcolumn&#8217;</span>&gt;&lt;<a href="http://december.com/html/4/element/h2.html"><span class="kw2">h2</span></a>&gt;</span>Left<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/h2.html"><span class="kw2">h2</span></a>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&#8216;right&#8217;</span> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&#8216;column abs rightcolumn&#8217;</span>&gt;&lt;<a href="http://december.com/html/4/element/h2.html"><span class="kw2">h2</span></a>&gt;</span>Right<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/h2.html"><span class="kw2">h2</span></a>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>&gt;</span> &nbsp;<br />
&nbsp; &nbsp; <span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>&gt;</span><br />
&nbsp; &nbsp; <span class="sc-1">&lt;!&#8211; items that fall ouside of the page structure&#8211;&gt;</span><br />
&nbsp; &nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;bannerimage&quot;</span> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;abs&quot;</span>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;align&quot;</span>&gt;</span>banner<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>&gt;</span></div>
</div>
<p>Some CSS (I like to include a <a href="http://meyerweb.com/eric/tools/css/reset/">reset.css</a> before this to clear out any cross browser issues)</p>
<div class="codesnip-container" >
<div class="css codesnip" style="font-family:monospace;"><span class="re1">.align</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#123;</span><span class="kw1">width</span><span class="sy0">:</span><span class="re3">1004px</span><span class="sy0">;</span>margin<span class="sy0">:</span>0 <span class="kw2">auto</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re1">.rel</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#123;</span><span class="kw1">position</span><span class="sy0">:</span><span class="kw2">relative</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re1">.abs</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#123;</span><span class="kw1">position</span><span class="sy0">:</span><span class="kw2">absolute</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re1">.displayblock</span> &nbsp; <span class="br0">&#123;</span><span class="kw1">display</span><span class="sy0">:</span><span class="kw2">block</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re0">#page</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span><span class="kw1">width</span><span class="sy0">:</span><span class="re3">1004px</span><span class="sy0">;</span>top<span class="sy0">:</span><span class="re3">340px</span><span class="sy0">;</span>background-<span class="kw1">color</span><span class="sy0">:</span><span class="re0">#fff</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re0">#left</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span><span class="kw1">top</span><span class="sy0">:</span><span class="nu0">0</span><span class="sy0">;</span>left<span class="sy0">:</span><span class="nu0">0</span><span class="sy0">;</span>width<span class="sy0">:</span><span class="re3">220px</span><span class="sy0">;</span>background-<span class="kw1">color</span><span class="sy0">:</span><span class="re0">#eee</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re0">#right</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#123;</span><span class="kw1">top</span><span class="sy0">:</span><span class="re3">0px</span><span class="sy0">;</span>left<span class="sy0">:</span><span class="re3">740px</span><span class="sy0">;</span>width<span class="sy0">:</span><span class="re3">264px</span><span class="sy0">;</span>background-<span class="kw1">color</span><span class="sy0">:</span><span class="re0">#eee</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re0">#main</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span><span class="kw1">margin</span><span class="sy0">:</span>0 <span class="re3">10px</span><span class="sy0">;</span>background-<span class="kw1">color</span><span class="sy0">:</span><span class="re0">#bbb</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re1">.incleft</span> <span class="re0">#main</span> &nbsp;<span class="br0">&#123;</span><span class="kw1">margin-left</span><span class="sy0">:</span><span class="re3">220px</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re1">.incright</span> <span class="re0">#main</span> <span class="br0">&#123;</span><span class="kw1">margin-right</span><span class="sy0">:</span><span class="re3">265px</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; .<span class="kw1">content</span> &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#123;</span><span class="kw1">margin</span><span class="sy0">:</span><span class="re3">27px</span> <span class="re3">30px</span> <span class="re3">100px</span> <span class="re3">30px</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re0">#bannerimage</span> &nbsp; &nbsp;<span class="br0">&#123;</span><span class="kw1">top</span><span class="sy0">:</span><span class="re3">0px</span><span class="sy0">;</span>left<span class="sy0">:</span><span class="re3">-1px</span><span class="sy0">;</span>z-index<span class="sy0">:</span>-<span class="nu0">1</span><span class="sy0">;</span>width<span class="sy0">:</span><span class="re3"><span class="nu0">100</span>%</span><span class="sy0">;</span>height<span class="sy0">:</span><span class="re3">600px</span><span class="sy0">;</span>margin<span class="sy0">:</span>0 <span class="kw2">auto</span><span class="sy0">;</span>background-<span class="kw1">color</span><span class="sy0">:</span><span class="re0">#ccc</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re0">#bannerimage</span> a &nbsp;<span class="br0">&#123;</span><span class="kw1">height</span><span class="sy0">:</span><span class="re3">195px</span><span class="sy0">;</span>margin-<span class="kw1">top</span><span class="sy0">:</span><span class="re3">85px</span><span class="sy0">;</span>display<span class="sy0">:</span><span class="kw2">block</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re0">#footer</span> &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span><span class="kw1">width</span><span class="sy0">:</span><span class="re3">1004px</span><span class="sy0">;</span>height<span class="sy0">:</span><span class="re3">200px</span><span class="sy0">;</span>background-<span class="kw1">color</span><span class="sy0">:</span><span class="re0">#ddd</span><span class="sy0">;</span><span class="br0">&#125;</span></div>
</div>
<p>And then the javascript (remember to add the jQuery library and an optional equal heights plugin)</p>
<div class="codesnip-container" >
<div class="javascript codesnip" style="font-family:monospace;"><span class="co1">//&#8212;Column display manager</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>$<span class="br0">&#40;</span><span class="st0">&#8216;#page .leftcolumn&#8217;</span><span class="br0">&#41;</span>.<span class="me1">length</span> <span class="sy0">&gt;</span> <span class="nu0">0</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> $<span class="br0">&#40;</span><span class="st0">&#8216;#page&#8217;</span><span class="br0">&#41;</span>.<span class="me1">addClass</span><span class="br0">&#40;</span><span class="st0">&#8216;incleft&#8217;</span><span class="br0">&#41;</span><span class="sy0">;</span> $<span class="br0">&#40;</span><span class="st0">&#8216;#left&#8217;</span><span class="br0">&#41;</span>.<span class="me1">addClass</span><span class="br0">&#40;</span><span class="st0">&#8216;displayblock&#8217;</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>$<span class="br0">&#40;</span><span class="st0">&#8216;#page .rightcolumn&#8217;</span><span class="br0">&#41;</span>.<span class="me1">length</span> <span class="sy0">&gt;</span> <span class="nu0">0</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> $<span class="br0">&#40;</span><span class="st0">&#8216;#page&#8217;</span><span class="br0">&#41;</span>.<span class="me1">addClass</span><span class="br0">&#40;</span><span class="st0">&#8216;incright&#8217;</span><span class="br0">&#41;</span><span class="sy0">;</span> $<span class="br0">&#40;</span><span class="st0">&#8216;#right&#8217;</span><span class="br0">&#41;</span>.<span class="me1">addClass</span><span class="br0">&#40;</span><span class="st0">&#8216;displayblock&#8217;</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="br0">&#125;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//&#8212;Column equal heights | dependancy: jquery.equalheights.js</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>$<span class="br0">&#40;</span><span class="st0">&#8216;.column&#8217;</span><span class="br0">&#41;</span>.<span class="me1">length</span> <span class="sy0">&gt;</span> <span class="nu0">1</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> $<span class="br0">&#40;</span><span class="st0">&#8216;.column&#8217;</span><span class="br0">&#41;</span>.<span class="me1">equalHeights</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="br0">&#125;</span></div>
</div>
<p>The great thing about this template is that it justs works &#8211; remove the #left div and the content takes up the first two columns, remove the #right div and the content takes up the last two columns. Take out # left and #right and, I&#8217;m sure you&#8217;ve guessed it, the content takes up all three columns.</p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2011/04/11/a-truly-versatile-three-column-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting destination page to reload after back button is clicked</title>
		<link>http://daverussell.co.za/wordpress/2011/01/07/getting-destination-page-to-reload-after-back-button-is-clicked/</link>
		<comments>http://daverussell.co.za/wordpress/2011/01/07/getting-destination-page-to-reload-after-back-button-is-clicked/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 09:55:21 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[back button]]></category>
		<category><![CDATA[onload]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=205</guid>
		<description><![CDATA[I found that in certain cases that the back button was causing much mayhem on my site as the code is not reloaded and therefore caused some unwanted behaviour. So here&#8217;s my cross-browser fix that I have devised after much googling. For a change IE was not the challenge, but rather Firefox as the onload [...]]]></description>
			<content:encoded><![CDATA[<p>I found that in certain cases that the back button was causing much mayhem on my site as the code is not reloaded and therefore caused some unwanted behaviour.</p>
<p>So here&#8217;s my cross-browser fix that I have devised after much googling. For a change IE was not the challenge, but rather Firefox as the onload event does not fire when the back button is used. </p>
<p>First, oddly, you need to <a href="http://stackoverflow.com/questions/158319/cross-browser-onload-event-and-the-back-button">clear the unload event</a></p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/body.html"><span class="kw2">body</span></a> <span class="kw3">onunload</span><span class="sy0">=</span><span class="st0">&quot;&quot;</span>&gt;</span></div>
</div>
<p>Then add a hidden field to the page to use as a flag:</p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/input.html"><span class="kw2">input</span></a> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;hidden&quot;</span> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;refreshed&quot;</span> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">&quot;no&quot;</span> <span class="sy0">/</span>&gt;</span></div>
</div>
<p>Lastly, the magic javascript. If you are using jQuery, don&#8217;t try and modernise the code and stick it in the .ready event &#8211; it won&#8217;t work, I tried.</p>
<div class="codesnip-container" >
<div class="javascript codesnip" style="font-family:monospace;"><span class="kw3">onload</span> <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw2">var</span> e <span class="sy0">=</span> document.<span class="me1">getElementById</span><span class="br0">&#40;</span><span class="st0">&quot;refreshed&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>e.<span class="me1">value</span> <span class="sy0">==</span> <span class="st0">&quot;no&quot;</span><span class="br0">&#41;</span> e.<span class="me1">value</span> <span class="sy0">=</span> <span class="st0">&quot;yes&quot;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="kw1">else</span> <span class="br0">&#123;</span> e.<span class="me1">value</span> <span class="sy0">=</span> <span class="st0">&quot;no&quot;</span><span class="sy0">;</span> location.<span class="me1">reload</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div>
</div>
<p>Good luck, let me know if this helped.</p>
<p>Thanks go to those who <a href="http://www.webdeveloper.com/forum/showthread.php?t=137518">contributed</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2011/01/07/getting-destination-page-to-reload-after-back-button-is-clicked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fantastic use of pure css to create animation</title>
		<link>http://daverussell.co.za/wordpress/2010/01/29/fantastic-use-of-pure-css-to-create-animation/</link>
		<comments>http://daverussell.co.za/wordpress/2010/01/29/fantastic-use-of-pure-css-to-create-animation/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 11:20:14 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=162</guid>
		<description><![CDATA[I like to think I have a fairly good grip on CSS, but this takes it to another level: Introducing the rolling coke can&#8230; Consider yourself humbled.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.romancortes.com/ficheros/css-coke.html"><img alt="" src="http://www.daverussell.co.za/wordpress/wp-content/uploads/coke.jpg" class="alignleft" height="150" /></a>I like to think I have a fairly good grip on CSS, but this takes it to another level:<br />
<a href="http://www.romancortes.com/ficheros/css-coke.html" target="_blank">Introducing the rolling coke can&#8230;</a></p>
<p>Consider yourself humbled.</p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/01/29/fantastic-use-of-pure-css-to-create-animation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A really really flexible CSS layout</title>
		<link>http://daverussell.co.za/wordpress/2010/01/13/a-really-really-flexible-css-layout/</link>
		<comments>http://daverussell.co.za/wordpress/2010/01/13/a-really-really-flexible-css-layout/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 13:09:01 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=150</guid>
		<description><![CDATA[This is a really really flexible layout that does not make use of tables and can be used as either a 1,2 or 3 column layout by simply including or omitting the left and right columns. The content is king, so the content comes first in the html followed by the rest. The structure is [...]]]></description>
			<content:encoded><![CDATA[<p>This is a really really flexible layout that does not make use of tables and can be used as either a 1,2 or 3 column layout by simply including or omitting the left and right columns. The content is king, so the content comes first in the html followed by the rest. The structure is controlled via CSS with a little bit of coolness added on thanks to jQuery.</p>
<p>The top banner code is there only to show what is possible, the reason I built this was to have one template that could handle any layout. The interesting thing about the top banner though is that there are two background images on top of each other which creates a lot or flexibility when it comes to banner imagery that overlaps the extents of the 960 by x height banner area.</p>
<p>I have used one jQuery plugin to force equal height columns (1kb) and made use of the cdn for the jquery source.  So this should be really quick as well as flexible.</p>
<p><a title="the really really flexible demo" href="http://www.daverussell.co.za/Demos/FlexibleLayout/index.htm" target="_blank">Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/01/13/a-really-really-flexible-css-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple, accessible, standards based and validated Form</title>
		<link>http://daverussell.co.za/wordpress/2010/01/08/simple-accessible-standards-based-and-validated-form/</link>
		<comments>http://daverussell.co.za/wordpress/2010/01/08/simple-accessible-standards-based-and-validated-form/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 10:29:58 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://daverussell.co.za/wordpress/?p=145</guid>
		<description><![CDATA[We all know that tables are evil and you run the risk of being seriously uncool if you are caught using them. But when it comes to forms they really make cross browser layouts that much easier, which is why there are so many forms that use tables. In the interest of good standards based [...]]]></description>
			<content:encoded><![CDATA[<p>We all know that tables are evil and you run the risk of being seriously uncool if you are caught using them. But when it comes to forms they really make cross browser layouts that much easier, which is why there are so many forms that use tables. In the interest of good standards based design I have created a form based on fieldsets and definition lists.</p>
<p>There are actually a few points to mention:</p>
<ul>
<li>Definition lists are used to layout name/value pairs,</li>
<li>jquery validation modified from <a title="Simple validation with jQuery" href="http://webcloud.se/article/Form_validation_with_jQuery_from_scratch/?demo-field-1=s&amp;demo-field-1=&amp;demo-field-3=" target="_blank">this article</a>,</li>
<li>a conditional stylesheet has been used to please that other browser,</li>
<li>the<a title="Sliding Doors" href="http://www.google.co.za/url?sa=t&amp;source=web&amp;ct=res&amp;cd=2&amp;ved=0CBQQFjAB&amp;url=http%3A%2F%2Fwww.alistapart.com%2Farticles%2Fslidingdoors%2F&amp;rct=j&amp;q=sliding+doors+css&amp;ei=XwRHS9vBO8bRjAeq_sCABw&amp;usg=AFQjCNFXHNPi1KIP2elx7Zj-gmVTNS0HQg&amp;sig2=BGK2O8bvuvYc3eQfpDoNtw" target="_blank"> sliding doors technique</a> has been used to style the submit button,</li>
<li>Eric Meyer&#8217;s <a title="Reset your CSS" href="http://meyerweb.com/eric/tools/css/reset/" target="_blank">css reset</a> was used to initialise defaults across browsers,</li>
<li>Required fields denoted by a star just by adding a class to the dt tag.</li>
</ul>
<p>This form has been tested in all the major browsers: ie6+, firefox and chrome.</p>
<p><a title="Accessible Form" href="http://www.daverussell.co.za/Demos/Form/form.htm" target="_blank">The Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://daverussell.co.za/wordpress/2010/01/08/simple-accessible-standards-based-and-validated-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

