<?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>VernMcGeorge.com</title>
	<atom:link href="http://vernmcgeorge.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://vernmcgeorge.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 17 Aug 2010 20:52:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>My Updated Résumé Now On-Line</title>
		<link>http://vernmcgeorge.com/?p=192</link>
		<comments>http://vernmcgeorge.com/?p=192#comments</comments>
		<pubDate>Tue, 17 Aug 2010 20:28:37 +0000</pubDate>
		<dc:creator>Vern McGeorge</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[resume]]></category>

		<guid isPermaLink="false">http://vernmcgeorge.com/?p=192</guid>
		<description><![CDATA[Actually, I&#8217;ve got several &#8211; each highlighting one aspect of my career &#8211; and you can find them here.]]></description>
			<content:encoded><![CDATA[<p>Actually, I&#8217;ve got several &#8211; each highlighting one aspect of my career &#8211; and you can find them <a href="http://vernmcgeorge.com/?page_id=194">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://vernmcgeorge.com/?feed=rss2&amp;p=192</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In Defense of Docking Stations</title>
		<link>http://vernmcgeorge.com/?p=55</link>
		<comments>http://vernmcgeorge.com/?p=55#comments</comments>
		<pubDate>Mon, 12 Jul 2010 19:05:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[docking]]></category>
		<category><![CDATA[dyi]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[laptop]]></category>

		<guid isPermaLink="false">http://vernmcgeorge.com/?p=55</guid>
		<description><![CDATA[One of the infrastructure issues that has kept me from from upgrading my laptop until recently has been the lack of docking station solutions in modern laptops. In my office, I run a KVM switch that allows me to share a killer monitor, cordless keyboard, and a cordless mouse among four different computers &#8211; my [...]]]></description>
			<content:encoded><![CDATA[<p>One of the infrastructure issues that has kept me from from upgrading my laptop until recently has been the lack of docking station solutions in modern laptops. In my office, I run a KVM switch that allows me to share a killer monitor, cordless keyboard, and a cordless mouse among four different computers &#8211; my laptop, my new quad-core tower, a Mac-mini, and any one of my old towers that I choose to shove into a space I&#8217;ve set aside in the right-rear corner of my office. In fact, my laptop support includes a second docking station that I can take to a client site allowing me to painlessly move my laptop back-and-forth.</p>
<p>Alas, newer laptops have abandoned docking stations in favor of USB based universal port replicators. The promise is that by hooking up one USB cable, you can hook your computer up to all your peripheral devices. If you look beyond flashy promise on the box, you will note a few problems including:</p>
<p>1. Your networking is connected &#8211; provided your notebook has wireless networking and this is supported in your environment. If you want to use a networking cable, you have to hook up two cables.</p>
<p>2. Your laptop is powered &#8211; until your battery gives out. If you want to hook up power, now you&#8217;re up to three cables. I&#8217;ve seen USB port replicators that claim to charge your laptop while it is plugged into the replicator, but I haven&#8217;t seen any that claim to run your laptop.</p>
<p>3. You spent the extra bucks to get the upgraded graphics card for your notebook but as soon as you go to one of these port replicators you have to install software (often Windows only) to burn up your CPU cycles while dumbing down your graphics to a compressed stream that can be pushed through a USB port.</p>
<p>Where are we? Assuming that you could plug in a dedicated video cable (and that&#8217;s a big assumption for reasons that will be discussed below), you have now spent $70 &#8211; $120 on an on/off switch and USB hub (a $20 value).</p>
<table style="valign: baseline; background: white;">
<tr style="valign: baseline; background: white;">
<td style="valign: baseline; background: white;">
<p>I understand the argument against docking stations &#8211; that every new computer requires a new docking station. This has certainly been the case in the past but I don&#8217;t think this &#8220;requirement&#8221; is real. I think it reflects:</p>
<p>1. A failure to drive any standards for the size, shape, and position of the docking connector. On every laptop, it&#8217;s always different and in a different place &#8211; thus requiring a custom docking station for each machine.</p>
<p>2. A failure of imagination stemming from (1). If the connector was always in the same place (for example in a defined orientation on the bottom of the laptop at a defined distance from the left edge of the computer, the front edge of the computer, and the bottom plane of the computer &#8211; i.e. the &#8220;surface of the tabletop&#8221; when the computer is resting on it&#8217;s feet &#8211; in other words, a known X, Y, and Z position) I can easily imagine a framework that could be adjusted in width and depth so that you could push your laptop over a front rail and into the frame against the resistance of spring loaded pockets in the rear corners and then engage the connector on the bottom of the computer by dropping the front edge of the computer behind the front rail and pushing it down. Trivial.</p>
<p>3. A failure to separate form from function. Docking stations have traditionally focused heavily on form &#8211; holding the notebook and guiding it into the docking connector and less so on the core function &#8211; give me a place where I can tuck my closed laptop out of the way and interact with it as though it was a desktop machine. I personally would not care if I the docking station was little more than wiring harness / umbilical that I had to connect by hand before shoving my computer under my monitor stand. The only two important functions are to minimize the number of cables I have to plug in (preferably to one) and to expose an on/off switch.</p>
<p>Anyway, having given up on finding a real solution, I set out to solve this problem as best I could by building a PVC frame to fit my laptop and then tie wrapping the four cables I need to connect (counter-clockwise from the left-front edge: network, video out, power, and USB to a hub) right next to the connectors that I need to plug them into. The trickiest part was securing the cables in the right orientation so that I could bend them easily without twisting during the connection process.</p>
<p>It works quite well and lifts the computer off the desk so that it gets better airflow.</p>
<p>The only thing that it does not do is provide an on/off switch. For this, I have to pull the computer out from under the monitor stand and flip open the lid. The upside of this is I get to use the fingerprint reader to log in before flipping the lid closed and shoving it under the monitor.</p>
</td>
<td style="width: 310px; background: white;">
<p><a href="http://vernmcgeorge.com/wp-content/uploads/2010/07/2010-07-06-10.33.03.jpg"><img src="http://vernmcgeorge.com/wp-content/uploads/2010/07/2010-07-06-10.33.03-300x225.jpg" alt="PVC Frame showing tie-wrapped cables." title="2010-07-06 10.33.03" width="300" height="225" class="size-medium wp-image-158" /></a></p>
<p><a href="http://vernmcgeorge.com/wp-content/uploads/2010/07/2010-07-06-10.35.00.jpg"><img src="http://vernmcgeorge.com/wp-content/uploads/2010/07/2010-07-06-10.35.00-300x225.jpg" alt="Left Side Connections" title="2010-07-06 10.35.00" width="300" height="225" class="size-medium wp-image-159" /></a></p>
<p><a href="http://vernmcgeorge.com/wp-content/uploads/2010/07/2010-07-06-10.35.40.jpg"><img src="http://vernmcgeorge.com/wp-content/uploads/2010/07/2010-07-06-10.35.40-300x225.jpg" alt="Right Side Connections" title="2010-07-06 10.35.40" width="300" height="225" class="size-medium wp-image-160" /></a></p>
<p><a href="http://vernmcgeorge.com/wp-content/uploads/2010/07/2010-07-06-10.37.27.jpg"><img src="http://vernmcgeorge.com/wp-content/uploads/2010/07/2010-07-06-10.37.27-225x300.jpg" alt="Ready to Log In" title="2010-07-06 10.37.27" width="225" height="300" class="size-medium wp-image-161" /></a></p>
</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://vernmcgeorge.com/?feed=rss2&amp;p=55</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ode to Jasmine</title>
		<link>http://vernmcgeorge.com/?p=151</link>
		<comments>http://vernmcgeorge.com/?p=151#comments</comments>
		<pubDate>Sat, 03 Jul 2010 04:32:10 +0000</pubDate>
		<dc:creator>Vern McGeorge</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[dogs]]></category>

		<guid isPermaLink="false">http://vernmcgeorge.com/?p=151</guid>
		<description><![CDATA[Jasmine was a great dog, everyone who knew her loved her, and she will be missed.]]></description>
			<content:encoded><![CDATA[<p>My friend Steve and I have had an arrangement to trade off dog sitting duties for several years. Recently, I have been taking care of his dog, Jasmine, while he goes through the logistics of moving to Syracuse, NY and starting med school.</p>
<p>Jasmine was a Xolo AKA Xoloitzcuintli (pronounced Show-low-its-queen-tli) AKA Mexican Hairless.</p>
<p>Her early life is unknown although one might surmise that having been born with fur, she was not valued by her breeder and was therefore abandoned.</p>
<p>In any event, she lived her early years on the street &#8211; long enough to birth one litter of pups &#8211; before she got scooped up by animal control.</p>
<p>Fortunately, my friend Steve, his daughter Heidi, and his girlfriend Elise took Jasmine in and gave her a loving home.<br />
Steve is a runner, so Jasmine would often “go on patrol” with her pack &#8211; head up, ears up, scanning for danger &#8211; unlike my yellow lab, Cabo, who , nose down, scampers from bush to bush. She loved these walks the way my dog loves swimming after tennis balls.</p>
<p>Although some rescue dogs have hidden psychological damage that can come out, often violently, in the wrong circumstances. Jasmine showed none of these problems. She nipped Steve once, and as he tells the story, immediately got an “Oh my God, what have I done?” look on her face and dropped into full-on submission mode. She even got alone with other dog as soon as the pecking-order was negotiated.</p>
<p>Jasmine was completely devoted to her people.</p>
<p>The first thing she would do at my house is race Cabo to the back yard for a little competitive pee-ing. She would follow Cabo around and lift her leg (a very un-lady-like trait she no doubt picked up on the street) over top of everywhere Cabo had been. Sort of like tagging over top of someone else’s tag. She who pee’s last, wins.</p>
<p>Whenever Jasmine came over, she would also assume Beta dog status and relegate Cabo to third place.</p>
<p>Walking two dogs was a challenge. I walk Cabo on a 25 foot retracting lead and would clip Jasmine’s more modest leash to the handle.</p>
<p>This would present the immediate challenge of Jasmine needing to catch up to Cabo and be out front &#8211; and she couldn’t.</p>
<p>They would also conspire to wait until I was juggling two leashes and a poop bag and then dance around my feet, often in opposite directions. This often backfired on Jasmine as Cabo’s leash would sweep her feet out from under her.</p>
<p>I often laughingly referred to Jasmine as a slut. Having found little love in her early life, she was completely focused on getting attention from humans.</p>
<p>If I was on the couch, she’d be crawling slowly into my lap. If I was petting Cabo, she’d slither into the space between my dog and my leg (which was great fun after knee surgery). If I was on the bed, Cabo would take her place down by my feet, but Jasmine would be on her belly, inching toward my chin, tongue reaching out for a lady-like lick. I would often knock her over against my hip and pin her there with my arm. This was enough to meet her needs and let my get some sleep.</p>
<p>Whenever I would walk into a room where she was sleeping, her head would remain down but her eyes and ears would immediately lock-on and track my every move while the tip of her tail would thump-thump-thump against the floor or the couch.</p>
<p>Recently, Jasmine has been suffering from seizures. Not often, not long, and they seemed to be fading with time. This is not unusual because environmental toxins (plants, pesticides, etc.) can trigger seizures and as the contamination clears, the seizures do as well.</p>
<p>She had one seizure in my care when I took both dogs to the dog park. For Cabo, it’s all about chasing the tennis ball but for Jasmine, I assumed that dealing with establishing the pecking order around 20 excited dogs just may have been too much. So I never took Jasmine back to the dog park.</p>
<p>I had been watching Jasmine for several weeks and was, in fact, within days of handing her back to Elise when she returned to California when on Friday, June 16th at 1:50 AM the dogs woke me up. I let them out back and then went to the bathroom myself. Both dogs followed me and Jasmine was walking funny. When I left the bathroom, I found her in the living room, jammed between a chair and the wall, legs stiff, foaming at the mouth, and bitting the air.</p>
<p>I spent the first ten minutes, comforting Jasmine and waiting for the seizure to end. It did not. It would start to fade and then get worse again.</p>
<p>Then I started looking for emergency veterinary care. The only vet I found had bad on-line reviews (although I found them caring and professional), so this took more time that it should have. So, I iterated on this &#8211; searching the web, comforting Jasmine &#8211; until I gave up and decided to go to the clinic I had found no matter how bad it might be. Then I struggled with how to move this wiggling beast without getting bit. I finally settled on emptying a big plastic bin, tipping Jasmine into ti, and carrying both out to my car, where Jasmine immediately tipped out of it as soon as I loaded it in the back. Ten minutes later, I was at the clinic where they immediately rushed Jasmine into treatment, administered two doses of Diazepam, and started evaporative cooling &#8211; alcohol on the on the foot pads, cold water over her body and neck.</p>
<p>By 3:15, plus or minus 15 minutes, the seizure was over and her core temperature had started to come down.</p>
<p>Shortly afterward, I had managed to get Steve on the phone and the doctor was briefing him, as she had briefed me, on the challenges and treatment options available.</p>
<p>The prognosis was not good.</p>
<p>The problem is that with a body temperature over 106 degrees for an unknown length of time (Jasmine’s was 108.5 when we arrived at the vet) the proteins in her blood would start to de-nature much like the whites of an egg as it cooks.</p>
<p>This left Jasmine exposed to a number of problems including uncontrolled internal bleeding, kidney failure, and liver failure over the course of the following week. Even with the most aggressive treatment, her chances of making it through the week were poor.</p>
<p>Add to that, the effect of the seizure itself which could include profound personality changes, blindness, loss of balance and muscle control, and the increased chance of future seizures which could only be prevented with heavy doses of anti-seizure medications.</p>
<p>Then, there was the underlaying cause of the seizures which were now, clearly, not an environmental toxin.</p>
<p>Steve eventually decided that the kindest and least worst solution was euthanasia and the vet concurred. I could hear it in his voice as he agonized over the decision &#8211; it was tearing him up inside.</p>
<p>I’m so sorry I couldn’t return Steve’s dog to him, hearty and healthy but I’m glad that I didn’t have to make that decision. Cabo is now ten years old, so I can only hope I won’t have to face this situation for at least a few more years.</p>
<p>I held my phone up against Jasmine’s ear so Steve could say goodbye and then I stayed with Jasmine while the vet injected her with the sedative. As soon as she fell asleep, I left, having no desire to watch her die.</p>
<p>I cried in the car and then drove home to hug my dog.</p>
<p>Jasmine was a great dog, everyone who knew her loved her, and she will be missed.</p>
]]></content:encoded>
			<wfw:commentRss>http://vernmcgeorge.com/?feed=rss2&amp;p=151</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thoughts on Web Page Layout</title>
		<link>http://vernmcgeorge.com/?p=113</link>
		<comments>http://vernmcgeorge.com/?p=113#comments</comments>
		<pubDate>Sun, 20 Jun 2010 03:01:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vernmcgeorge.com/?p=113</guid>
		<description><![CDATA[Call it a small conceit or affection, but I like my blog to look like my business card. Since I am launching a new blog (<a href="http://sparkofideation.com">Spark<em>of</em>Ideation</a>) I decided to explore what new features might be available for laying out web pages.]]></description>
			<content:encoded><![CDATA[<p>The underlying philosophy of the World Wide Web has been that mark-up is about content and the it is the browsers job to determine how to layout the content within the constraints of the user&#8217;s device. This, of course, ran headlong into the very human desire to want to control how our stuff looks when it is displayed to our readers.</p>
<p>The first attempt to resolve this conflict was frames which were <a href="http://www.yourhtmlsource.com/frames/goodorbad.html">problematical in many ways</a> which I won&#8217;t get into here.</p>
<p>Web authors naturally turned to the next most obvious solution &#8211; to hijack tables and use transparent spacer images as layout tools. Although much maligned by purists (and properly so), the use of tables has been the most widely used layout methodology <a href="http://stackoverflow.com/questions/83073/why-not-use-tables-for-layout-in-html">because of their ease of use and despite their many problems</a>.</p>
<p>There are several efforts afoot to come up with a standard for simplifying CSS based layout. These include the <a href="http://www.w3.org/TR/2009/WD-css3-flexbox-20090723/">Flexible Box Layout Module</a> and the <a href="http://www.w3.org/TR/2009/WD-css3-layout-20090402/">CSS Template Layout Module</a>. The Flexible Box Layout Module seems &#8220;more normal&#8221; from a syntax perspective and seems to have the greatest industry support while the CSS Template Layout Module, while weirder, has some, IMHO, significant benefits, much more sketchy support, and because it currently relies on a JavaScript simulation &#8211; at tleast the potential to work in Internet Explorer.</p>
<p>Below, I will present my attempts (code and resulting screen shots) using both methods as I try to implement a layout that looks much like the layout of this blog without beings such a total crufty hack. Then, I will propose and try to implement a layout methodology that combines the best of both solutions.</p>
<h3>Flexible Box Layout Module</h3>
<p>I started with the Flexible Box Layout Module by adapting the code from <a href="http://developer.appcelerator.com/blog/2010/06/how-to-full-page-css-3-layout-desktop.html">How-To: Full Page CSS 3 Layout (Desktop)</a> to present something that looks like my business cards layout.</p>
<p>Here&#8217;s the CSS &#8230;</p>
<div class="codecolorer-container css geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br />168<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">html<span style="color: #00AA00;">,</span>body <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#app</span> <span style="color: #00AA00;">&#123;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -webkit-box<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-orient<span style="color: #00AA00;">:</span> vertical<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-align<span style="color: #00AA00;">:</span>&nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -moz-box<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-orient<span style="color: #00AA00;">:</span>&nbsp; &nbsp; vertical<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-align<span style="color: #00AA00;">:</span> &nbsp; &nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box<span style="color: #00AA00;">;</span><br />
&nbsp; box-orient<span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; vertical<span style="color: #00AA00;">;</span><br />
&nbsp; box-align<span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stretch<span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
.<span style="color: #000000; font-weight: bold;">content</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&#123;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">50px</span><span style="color: #00AA00;">;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -webkit-box<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-orient<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-align<span style="color: #00AA00;">:</span>&nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -moz-box<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-orient<span style="color: #00AA00;">:</span>&nbsp; &nbsp; horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-align<span style="color: #00AA00;">:</span> &nbsp; &nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box<span style="color: #00AA00;">;</span><br />
&nbsp; box-orient<span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; box-align<span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.hs</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">blue.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.icn</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">170px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span> &nbsp; &nbsp;<br />
<br />
<span style="color: #cc00cc;">#main</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -webkit-box<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-orient<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-align<span style="color: #00AA00;">:</span>&nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -moz-box<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-orient<span style="color: #00AA00;">:</span> &nbsp;&nbsp; horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-align<span style="color: #00AA00;">:</span> &nbsp; &nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box<span style="color: #00AA00;">;</span><br />
&nbsp; box-orient<span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; box-align<span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#footer</span> <span style="color: #00AA00;">&#123;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -webkit-box<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-orient<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-align<span style="color: #00AA00;">:</span>&nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -moz-box<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-orient<span style="color: #00AA00;">:</span> &nbsp;&nbsp; horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-align<span style="color: #00AA00;">:</span> &nbsp; &nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box<span style="color: #00AA00;">;</span><br />
&nbsp; box-orient<span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; box-align<span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
.<span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">180px</span><span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.vs</span> <span style="color: #00AA00;">&#123;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -webkit-box<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-orient<span style="color: #00AA00;">:</span> vertical<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-align<span style="color: #00AA00;">:</span> &nbsp;stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -moz-box<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-orient<span style="color: #00AA00;">:</span> &nbsp;&nbsp; vertical<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-align<span style="color: #00AA00;">:</span> &nbsp; &nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box<span style="color: #00AA00;">;</span><br />
&nbsp; box-orient<span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; vertical<span style="color: #00AA00;">;</span><br />
&nbsp; box-align<span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.full</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">gold.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.partial</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">gold.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.no</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
.<span style="color: #993333;">center</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">min-width</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">300px</span><span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; <br />
.<span style="color: #000000; font-weight: bold;">right</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">220px</span><span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc00cc;">#bbbbdd</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #993333;">center</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc00cc;">#dddddd</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #000000; font-weight: bold;">right</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc00cc;">#ddbbbb</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#main</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc00cc;">#eeeeff</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#main</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #993333;">center</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#main</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #000000; font-weight: bold;">right</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc00cc;">#ffeeee</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#footer</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc00cc;">#ccccee</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#footer</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #993333;">center</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc00cc;">#eeeeee</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#footer</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #000000; font-weight: bold;">right</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc00cc;">#eecccc</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>&#8230; here&#8217;s the HTML &#8230;</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;FlexBox Example.css&quot;</span> <span style="color: #000066;">media</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;screen&quot;</span> &nbsp;<span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;app&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;header&quot;</span>&gt;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>left header<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;vs&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;partial vs&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;no&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;partial vs&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span>Vern's <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;alt-font&quot;</span>&gt;</span>Business Card<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span> Layout<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right header<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- header --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hs&quot;</span>&gt;&lt;<a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">img</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;icn&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;green_lightening.png&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;main&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Left Sidebar blah, blah, blah, blah, blah, blah, blah, blah, blah, blah<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;vs full&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span>Center Content<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; All these layouts are designed to mimic the layout of my business cards.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; This example uses the Flexible Box Module and is very loosely based on based on ...<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://developer.appcelerator.com/blog/2010/06/how-to-full-page-css-3-layout-desktop.html&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; How-To: Full Page CSS 3 Layout (Desktop)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span>See Also:<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span>Flexible Box Layout Module<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;FlexBox Example.html&quot;</span>&gt;</span>Best Result<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span>Template Layout Module<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Template Example.html&quot;</span>&gt;</span>Best Result<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span>Client-Side Template Layout<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Client Example.html&quot;</span>&gt;</span>Best Result<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Client Example XC.html&quot;</span>&gt;</span>Uncontained Content<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Client Example XT.html&quot;</span>&gt;</span>Missing Template<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- main --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; left footer<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;vs full&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ddbb00;">&amp;copy;</span> 2010 Vern McGeorge<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right footer<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- footer --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- app --&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>&#8230; and here&#8217;s the result &#8230;</p>
<p><a href="http://vernmcgeorge.com/wp-content/uploads/2010/06/Business-Card-Layout-Flexible-Box-Model-Results.png"><img class="alignnone size-full wp-image-116" title="Business Card Layout - Flexible Box Model - Results" src="http://vernmcgeorge.com/wp-content/uploads/2010/06/Business-Card-Layout-Flexible-Box-Model-Results.png" alt="" width="728" height="415" /></a></p>
<p>If you want to try it, click <a href="http://vernmcgeorge.com/Web Experiments/Layout 2010-06-22/FlexBox Example.html">here </a>(best viewed in Firefox). Please note that I have replaced the copyrighted images I used for the vertical and horizontal stripes so I could share the code.</p>
<p>Although I could continue to tweak this code and get a better result, my interest in this topic is largely driven by what tool set yields an &#8220;easy to get it right&#8221; experience. Neither did, so after devoting a couple hours to each method, I eventually copied my <a href="http://vernmcgeorge.com/">VernMcGeorge.com</a> theme over to my (<a href="http://sparkofideation.com">Spark<em>of</em>Ideation</a>) website and hacked together new background images to get the equivalent result.</p>
<p>Anyway, what worked well and what didn&#8217;t?</p>
<p>What worked well:</p>
<ul>
<li>I got a good, solid layout with well positioned layout with a footer fixed to the bottom of the browser window (which I&#8217;ve never been able to do before and which is wonderful for web applications that want to use the bottom edge of the screen for useful purposes (such as navigation or mode selection) just like installed applications do. Very cool!</li>
<li>I got full coverage of all areas of the layout using standard <em>background-color</em> and <em>background-image</em> CSS declarations &#8211; no funky faux-columns or negative margins here!</li>
</ul>
<p>What didn&#8217;t work well:</p>
<ul>
<li>The footer overlays the main content (in Google Chrome).</li>
<li>Still a ton of mark-up devoted to layout. Rather than non-tabular data pretending to be tables, there are a bunch of nested <strong>div</strong> tags. While this may be better from a semantically pure point of view, the effect on the readability of the markup is same. Fully 67 of 100 lines in the HTML in the body is about layout and only 33 lines are actual content. Although I can (and did) do better in a later version (see below), there&#8217;s no getting around a significant fraction of non-content code.</li>
<li>This can only work on <em>moz</em> and <em>webkit</em> engine browsers (which is to say all the good ones) and fails miserably on Internet Explorer.</li>
</ul>
<p>The first two problems could be coding errors on my part (which I will resolve later in this article if possible) but the third issue in intrinsic to this solution.</p>
<h3>Template Layout Module</h3>
<p>Next, I tried the <a href="http://www.w3.org/TR/css3-layout/">CSS Template Layout Module</a>.</p>
<p>Here&#8217;s the CSS &#8230;</p>
<div class="codecolorer-container css geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">html<span style="color: #00AA00;">,</span>body <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#app</span> <span style="color: #00AA00;">&#123;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
.<span style="color: #000000; font-weight: bold;">content</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.icn</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; <span style="color: #933;">170px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span> &nbsp;<br />
<br />
<span style="color: #cc00cc;">#template</span><br />
<span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <br />
&nbsp; &nbsp; <span style="color: #ff0000;">&quot;abef&quot;</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; /<span style="color: #933;">20px</span><br />
&nbsp; &nbsp; <span style="color: #ff0000;">&quot;acef&quot;</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; /<span style="color: #933;">20px</span><br />
&nbsp; &nbsp; <span style="color: #ff0000;">&quot;adef&quot;</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; /<span style="color: #933;">20px</span><br />
&nbsp; &nbsp; <span style="color: #ff0000;">&quot;gggg&quot;</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; /<span style="color: #933;">20px</span><br />
&nbsp; &nbsp; <span style="color: #ff0000;">&quot;hijk&quot;</span> <br />
&nbsp; &nbsp; <span style="color: #ff0000;">&quot;limn&quot;</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; /<span style="color: #933;">30px</span><br />
&nbsp; &nbsp; <span style="color: #933;">180px</span> <span style="color: #933;">40px</span> <span style="color: #00AA00;">*</span> <span style="color: #933;">220px</span><br />
&nbsp; <span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
&nbsp;<br />
<span style="color: #cc00cc;">#left_header</span> &nbsp;&nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> a<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#thvs</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> b<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#vsgap</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> c<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#bhvs</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> d<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#header</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> e<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#right_header</span> &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> f<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#hs</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> g<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#left_main</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> h<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#mvs</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> i<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#main</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> j<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#right_main</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> k<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#left_footer</span> &nbsp;&nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> l<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#footer</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> m<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#right_footer</span> &nbsp; &nbsp; &nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> n<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>a<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#bbbbdd</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>b<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f44</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>c<span style="color: #00AA00;">&#41;</span> &nbsp;<span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#bbd</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>d<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f88</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>e<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#dddddd</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>f<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ddbbbb</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>g<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#88f</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>h<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#eeeeff</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>i<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f88</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>j<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>k<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffeeee</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>l<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ccccee</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>m<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#eeeeee</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#template</span><span style="color: #00AA00;">::</span>slot<span style="color: #00AA00;">&#40;</span>n<span style="color: #00AA00;">&#41;</span>&nbsp; <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#eecccc</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#thvs</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">gold.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#bhvs</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">gold.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span> <br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#hs</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">blue.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#mvs</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">gold.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>&#8230; here&#8217;s the HTML &#8230;</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://css-template-layout.googlecode.com/files/jquery.tpl_layout1.1.1.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span> <br />
&nbsp; &nbsp; &nbsp; $(document).ready(function()<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $.setTemplateLayout()<br />
&nbsp; &nbsp; &nbsp; &nbsp; var x = 1;<br />
&nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Template Example.css&quot;</span> <span style="color: #000066;">media</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;screen&quot;</span> &nbsp;<span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;template&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;thvs&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;bhvs&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hs&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">img</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;icn&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;green_lightening.png&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;mvs&quot;</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left_header&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>left header<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left_header --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;header&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span>Vern's <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;alt-font&quot;</span>&gt;</span>Business Card<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span> Layout<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- header --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right_header&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right header<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right_header --&gt;</span><br />
<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left_main&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Left Sidebar blah, blah, blah, blah, blah, blah, blah, blah, blah, blah<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left_main --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;main&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span>Center Content<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; All these layouts are designed to mimic the layout of my business cards.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; This example uses the Template Layout Module and is very loosely based on ...<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.nealgrosskopf.com/tech/thread.php?pid=46&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSS Template Layouts: A Simpler CSS Layout System, Now Possible With JQuery<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- main --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right_main&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span>See Also:<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span>Flexible Box Layout Module<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;FlexBox Example.html&quot;</span>&gt;</span>Best Result<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span>Template Layout Module<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Template Example.html&quot;</span>&gt;</span>Best Result<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span>Client-Side Template Layout<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Client Example.html&quot;</span>&gt;</span>Best Result<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Client Example XC.html&quot;</span>&gt;</span>Uncontained Content<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Client Example XT.html&quot;</span>&gt;</span>Missing Template<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right_main --&gt;</span><br />
<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left_footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; left footer<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left_footer --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ddbb00;">&amp;copy;</span> 2010 Vern McGeorge<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- footer --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right_footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right footer<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right_footer --&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> &nbsp;<br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>&#8230;and here&#8217;s the result &#8230;</p>
<p><a href="http://vernmcgeorge.com/wp-content/uploads/2010/06/Business-Card-Layout-Template-Layout-Model-Results.png"><img class="alignnone size-full wp-image-122" title="Business Card Layout - Template Layout Model - Results" src="http://vernmcgeorge.com/wp-content/uploads/2010/06/Business-Card-Layout-Template-Layout-Model-Results.png" alt="" width="728" height="415" /></a></p>
<p>You can look at a live example <a href="http://vernmcgeorge.com/Web Experiments/Layout 2010-06-22/Template Example.html">here</a>, although because of problems which I have not yet identified, the solution has degraded from the screen shot. I have copied this example into two new HTML and CSS files and reduced to down to the simplicity of &#8220;Hello, World!&#8221; (hoping to delete the problem at some point and thereby identify it) but have not been successful. It&#8217;s clearly some stupid little thing that I have grown blind to, so I leave the solution to you, the reader.</p>
<p>When I tried this a year ago on a different project, I got a better result. Obvously, I made some mistakes this time around or the solution that allows me to experiment with this method has degraded with time. I&#8217;m betting on my mistakes as the cause.</p>
<p>Regardless of any mistakes, there&#8217;s enough here (in the screen shot) to look at some of the pros and cons of this solution.</p>
<p>Let&#8217;s start with the cons:</p>
<ul>
<li>This solution relies on some fairly heavy duty JavaScript to interpret and apply the template after the page is loaded.</li>
<li>Because of this, users that disable JavaScript get an ugly result.</li>
<li>Everything has floated to the top and overlaps other content &#8211; yuck!</li>
<li>The post-processing to apply the layout positions everything absolutely and renders the resulting page virtually unreadable using developers tools and consoles such as Firebug.</li>
<li>While this solution looks like it might apply background-colors well enough, it didn&#8217;t do anything for background images until later &#8211; when it stopped doing layout. Not a good trade in my book.</li>
</ul>
<p>Now, let&#8217;s consider the pro&#8217;s:</p>
<ul>
<li>Although the nested &#8220;content&#8221; <strong>div</strong>s remain in this markup, all of the rest of the layout has been relegated to the CSS file where, IMHO, it belongs. Each section of content can then be wrapped in a single <strong>div</strong> with an <em>id</em> attribute that identifies what it is and can be used to position the content within the layout.</li>
<li>The sections of content are order independent from the layout and can be presented from most important to least in the HTML markup. In contrast, layout that depends on tables or nested <strong>div</strong>s must be presented in a left-to-right, then top-to-bottom format (at least in English).</li>
<li>Although the current proposal for the Template Layout Module is restricted to rectangular slots (into which content is positioned), the spec foresees the possibility of non-rectangular and dis-contiguous slots in some future version. Wouldn&#8217;t that be sweet?</li>
</ul>
<h3>Client-Side Template Layout</h3>
<p>Next, I asked my self, &#8220;How can I get the best of both these solutions? Just how much of the markup devoted to layout could I remove if I was willing to pull out all the stops?&#8221;</p>
<p>The solution I can up with uses JavaScript to support the loading and application of a client-side template based on the Flexible Box Layout Module. This both removed most of the markup from the web page itself and allowed for order independence between the content as it is loaded and the content as it is finally presented to the user.</p>
<p>JavaScript is used to demonstrate this process although with two small extensions to the HTML specification, JavaScript would no longer be needed and the end result will be improved.</p>
<p>I started with the code  from the Flexible Box Layout example above split the markup into a template (which includes default content) and the actual page content. I then added JavaScript to load and apply the template.</p>
<p>Here&#8217;s the JavaScript Template Loader&#8230;</p>
<div class="codecolorer-container javascript geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br />168<br />169<br />170<br />171<br />172<br />173<br />174<br />175<br />176<br />177<br />178<br />179<br />180<br />181<br />182<br />183<br />184<br />185<br />186<br />187<br />188<br />189<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #006600; font-style: italic;">// Template Loader in three parts - Content Loader, Utility Functions, Functions to Load and Apply Template</span><br />
<br />
<span style="color: #006600; font-style: italic;">// Part 1 - Content Loader</span><br />
<br />
<span style="color: #006600; font-style: italic;">// Credit where credit is due. This is pretty much straight out of &quot;AJAX in Action&quot; by Dave Crane and Eric Pasarello with Darren James.</span><br />
<br />
<span style="color: #006600; font-style: italic;">/*<br />
url-loading object and a request queue built on top of it<br />
*/</span><br />
<br />
<span style="color: #009966; font-style: italic;">/* namespacing object */</span><br />
<span style="color: #003366; font-weight: bold;">var</span> net<span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
net.<span style="color: #660066;">READY_STATE_UNINITIALIZED</span><span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span><br />
net.<span style="color: #660066;">READY_STATE_LOADING</span><span style="color: #339933;">=</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span><br />
net.<span style="color: #660066;">READY_STATE_LOADED</span><span style="color: #339933;">=</span><span style="color: #CC0000;">2</span><span style="color: #339933;">;</span><br />
net.<span style="color: #660066;">READY_STATE_INTERACTIVE</span><span style="color: #339933;">=</span><span style="color: #CC0000;">3</span><span style="color: #339933;">;</span><br />
net.<span style="color: #660066;">READY_STATE_COMPLETE</span><span style="color: #339933;">=</span><span style="color: #CC0000;">4</span><span style="color: #339933;">;</span><br />
<br />
<br />
<span style="color: #009966; font-style: italic;">/*--- content loader object for cross-browser requests ---*/</span><br />
net.<span style="color: #660066;">ContentLoader</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>url<span style="color: #339933;">,</span><span style="color: #000066;">onload</span><span style="color: #339933;">,</span><span style="color: #000066;">onerror</span><span style="color: #339933;">,</span>method<span style="color: #339933;">,</span>params<span style="color: #339933;">,</span>contentType<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #000066;">onload</span><span style="color: #339933;">=</span><span style="color: #000066;">onload</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #000066;">onerror</span><span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">onerror</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #000066;">onerror</span> <span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">defaultError</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">loadXMLDoc</span><span style="color: #009900;">&#40;</span>url<span style="color: #339933;">,</span>method<span style="color: #339933;">,</span>params<span style="color: #339933;">,</span>contentType<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
net.<span style="color: #660066;">ContentLoader</span>.<span style="color: #660066;">prototype</span>.<span style="color: #660066;">loadXMLDoc</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>url<span style="color: #339933;">,</span>method<span style="color: #339933;">,</span>params<span style="color: #339933;">,</span>contentType<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>method<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; method<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;GET&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>contentType <span style="color: #339933;">&amp;&amp;</span> method<span style="color: #339933;">==</span><span style="color: #3366CC;">&quot;POST&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; contentType<span style="color: #339933;">=</span><span style="color: #3366CC;">'application/x-www-form-urlencoded'</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">XMLHttpRequest</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">ActiveXObject</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft.XMLHTTP&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">try</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> loader<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span>.<span style="color: #660066;">onreadystatechange</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; net.<span style="color: #660066;">ContentLoader</span>.<span style="color: #660066;">onReadyState</span>.<span style="color: #660066;">call</span><span style="color: #009900;">&#40;</span>loader<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span>.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>method<span style="color: #339933;">,</span>url<span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>contentType<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span>.<span style="color: #660066;">setRequestHeader</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Content-Type'</span><span style="color: #339933;">,</span> contentType<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span>.<span style="color: #660066;">send</span><span style="color: #009900;">&#40;</span>params<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #000066;">onerror</span>.<span style="color: #660066;">call</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<br />
net.<span style="color: #660066;">ContentLoader</span>.<span style="color: #660066;">onReadyState</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> req<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> ready<span style="color: #339933;">=</span>req.<span style="color: #660066;">readyState</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> httpStatus<span style="color: #339933;">=</span>req.<span style="color: #000066;">status</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>ready<span style="color: #339933;">==</span>net.<span style="color: #660066;">READY_STATE_COMPLETE</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>httpStatus<span style="color: #339933;">==</span><span style="color: #CC0000;">200</span> <span style="color: #339933;">||</span> httpStatus<span style="color: #339933;">==</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #000066;">onload</span>.<span style="color: #660066;">call</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// allows the passing of this context to the callback function</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// so the callback function has access to req.</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #000066;">onerror</span>.<span style="color: #660066;">call</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
net.<span style="color: #660066;">ContentLoader</span>.<span style="color: #660066;">prototype</span>.<span style="color: #660066;">defaultError</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;error fetching data!&quot;</span><br />
&nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>readyState:&quot;</span><span style="color: #339933;">+</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span>.<span style="color: #660066;">readyState</span><br />
&nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>status: &quot;</span><span style="color: #339933;">+</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span>.<span style="color: #000066;">status</span><br />
&nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>headers: &quot;</span><span style="color: #339933;">+</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span>.<span style="color: #660066;">getAllResponseHeaders</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #006600; font-style: italic;">// Part 2 - Utility Functions</span><br />
<br />
<span style="color: #006600; font-style: italic;">// Credit where credit is due. The findNodes() function is straight out of Foothill College's COIN 71 (Web Development) by Elaine Haight.</span><br />
<br />
<span style="color: #006600; font-style: italic;">// Looks through an XML tree to find nodes with &quot;tagname&quot; and</span><br />
<span style="color: #006600; font-style: italic;">// a particular &quot;attribute&quot; / &quot;value&quot; pair. Returns an array</span><br />
<span style="color: #006600; font-style: italic;">// of nodes if found and returns an empty array if no matching</span><br />
<span style="color: #006600; font-style: italic;">// nodes is found. Modified by VEM to use a custom comparator.</span><br />
<br />
<span style="color: #003366; font-weight: bold;">function</span> findNodes <span style="color: #009900;">&#40;</span>tree<span style="color: #339933;">,</span> tagName<span style="color: #339933;">,</span> attribute<span style="color: #339933;">,</span> value<span style="color: #339933;">,</span> comparator<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; comparator <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>comparator<span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> comparator <span style="color: #339933;">:</span> defaultComparator<span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> targetNodeArray <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> nodeArray <span style="color: #339933;">=</span> tree.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span>tagName<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #006600; font-style: italic;">// Build an array of all nodes in nodeArray where the attribute matches the value.</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>nodeArray.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> <span style="color: #339933;">++</span>i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> attributeValue <span style="color: #339933;">=</span> nodeArray<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">getAttribute</span><span style="color: #009900;">&#40;</span>attribute<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">!=</span> attributeValue<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> found <span style="color: #339933;">=</span> comparator<span style="color: #009900;">&#40;</span>attributeValue<span style="color: #339933;">,</span> value<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>found<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; targetNodeArray.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>nodeArray<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span>targetNodeArray<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #006600; font-style: italic;">// Looks through an XML tree to find a node with &quot;tagname&quot; and</span><br />
<span style="color: #006600; font-style: italic;">// a particular &quot;attribute&quot; / &quot;value&quot; pair. Returns the first node</span><br />
<span style="color: #006600; font-style: italic;">// found and returns null if no such node is found.</span><br />
<br />
<span style="color: #003366; font-weight: bold;">function</span> findNode <span style="color: #009900;">&#40;</span>tree<span style="color: #339933;">,</span> tagName<span style="color: #339933;">,</span> attribute<span style="color: #339933;">,</span> value<span style="color: #339933;">,</span> comparator<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> nodeArray <span style="color: #339933;">=</span> findNodes<span style="color: #009900;">&#40;</span>tree<span style="color: #339933;">,</span> tagName<span style="color: #339933;">,</span> attribute<span style="color: #339933;">,</span> value<span style="color: #339933;">,</span> comparator<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> targetNode <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>nodeArray.<span style="color: #660066;">length</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> nodeArray<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span>targetNode<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #006600; font-style: italic;">// Returns true if value1 == value2 and false otherwise.</span><br />
<span style="color: #003366; font-weight: bold;">function</span> defaultComparator <span style="color: #009900;">&#40;</span>value1<span style="color: #339933;">,</span> value2<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span>value1 <span style="color: #339933;">==</span> value2<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #006600; font-style: italic;">// Part 3 - Functions to Load and Apply Template</span><br />
<br />
<span style="color: #006600; font-style: italic;">// Returns true if attributeValue matches the pattern (&quot;... value xxx ...&quot;)</span><br />
<span style="color: #006600; font-style: italic;">// that we are looking for and false otherwise.</span><br />
<span style="color: #003366; font-weight: bold;">function</span> containsComparator <span style="color: #009900;">&#40;</span>attributeValue<span style="color: #339933;">,</span> value<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> contains <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> classArray <span style="color: #339933;">=</span> attributeValue.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">' '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #006600; font-style: italic;">// Look for the contains class followed by one other class name</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>classArray.<span style="color: #660066;">length</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span> <span style="color: #339933;">&amp;&amp;</span> contains<span style="color: #339933;">==</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #339933;">++</span>i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>classArray<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> value<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; contains <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span>contains<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #006600; font-style: italic;">// Returns &quot;xxx&quot; from an element's class=&quot;... value xxx ...&quot; attribute.</span><br />
<span style="color: #003366; font-weight: bold;">function</span> containsId <span style="color: #009900;">&#40;</span>container<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> contains <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> classList <span style="color: #339933;">=</span> container.<span style="color: #660066;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'class'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> classArray <span style="color: #339933;">=</span> classList.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">' '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #006600; font-style: italic;">// Look for the contains class followed by one other class name</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>classArray.<span style="color: #660066;">length</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span> <span style="color: #339933;">&amp;&amp;</span> contains<span style="color: #339933;">==</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">;</span> <span style="color: #339933;">++</span>i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>classArray<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'contains'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; contains <span style="color: #339933;">=</span> classArray<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span>contains<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #006600; font-style: italic;">// If successfully loaded, apply the template.</span><br />
<span style="color: #003366; font-weight: bold;">function</span> applyTemplate <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> body <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'body'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #006600; font-style: italic;">// Add the template node as the last (and if everything works, the only) child of the body.</span><br />
&nbsp; <span style="color: #006600; font-style: italic;">// If everything works out, all preceeding children will be moved into the template, leaving it as the only child.</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> bodyHTML <span style="color: #339933;">=</span> body.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> templateHTML <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span>.<span style="color: #660066;">responseText</span><span style="color: #339933;">;</span><br />
&nbsp; body.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> bodyHTML <span style="color: #339933;">+</span> templateHTML<span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #006600; font-style: italic;">// Walk through template finding nodes that contain attribute class=&quot;... contains id ...&quot;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> containers <span style="color: #339933;">=</span> findNodes<span style="color: #009900;">&#40;</span>body<span style="color: #339933;">,</span> <span style="color: #3366CC;">'*'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'class'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'contains'</span><span style="color: #339933;">,</span> containsComparator<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #006600; font-style: italic;">// For each node found</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>containers.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> <span style="color: #339933;">++</span>i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> container <span style="color: #339933;">=</span> containers<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// Find node in the body with matching tag name and attribute id=&quot;id&quot;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> contentId <span style="color: #339933;">=</span> containsId<span style="color: #009900;">&#40;</span>container<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> content <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span>contentId<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">!=</span> content<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// Remove any existing default content from the container.</span><br />
&nbsp; &nbsp; &nbsp; container.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// Insert the content element into the container element and remove the content</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// element from its original place in the document.</span><br />
&nbsp; &nbsp; &nbsp; container.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>content<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #006600; font-style: italic;">// If not successfully loaded, complain about it.</span><br />
<span style="color: #003366; font-weight: bold;">function</span> templateCouldNotBeLoaded <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Template Could Not Be Loaded!&quot;</span><br />
&nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>readyState:&quot;</span><span style="color: #339933;">+</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span>.<span style="color: #660066;">readyState</span><br />
&nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>status: &quot;</span><span style="color: #339933;">+</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span>.<span style="color: #000066;">status</span><br />
&nbsp; &nbsp; <span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>headers: &quot;</span><span style="color: #339933;">+</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">req</span>.<span style="color: #660066;">getAllResponseHeaders</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #006600; font-style: italic;">// After the page is loaded, load and apply the template to it.</span><br />
<span style="color: #003366; font-weight: bold;">function</span> loadAndApplyTemplate <span style="color: #009900;">&#40;</span>templateFile<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">new</span> net.<span style="color: #660066;">ContentLoader</span><span style="color: #009900;">&#40;</span>templateFile<span style="color: #339933;">,</span> applyTemplate<span style="color: #339933;">,</span> templateCouldNotBeLoaded<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>&#8230; here&#8217;s the CSS file &#8230;</p>
<div class="codecolorer-container css geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br />168<br />169<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">html<span style="color: #00AA00;">,</span>body <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span>&nbsp; <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#template</span> <span style="color: #00AA00;">&#123;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>&nbsp; -webkit-box<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-orient<span style="color: #00AA00;">:</span> vertical<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-align<span style="color: #00AA00;">:</span>&nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> &nbsp;-moz-box<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-orient<span style="color: #00AA00;">:</span>&nbsp; vertical<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-align<span style="color: #00AA00;">:</span> &nbsp; stretch<span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>&nbsp; box<span style="color: #00AA00;">;</span><br />
&nbsp; box-orient<span style="color: #00AA00;">:</span> &nbsp; &nbsp; vertical<span style="color: #00AA00;">;</span><br />
&nbsp; box-align<span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; stretch<span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&#123;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">60px</span><span style="color: #00AA00;">;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> -webkit-box<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-orient<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-align<span style="color: #00AA00;">:</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> -moz-box<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-orient<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-align<span style="color: #00AA00;">:</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> box<span style="color: #00AA00;">;</span><br />
&nbsp; box-orient<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; box-align<span style="color: #00AA00;">:</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.hs</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span>&nbsp; &nbsp; &nbsp; <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">blue.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.icn</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> &nbsp; &nbsp; <span style="color: #933;">170px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span> &nbsp;<br />
<br />
<span style="color: #cc00cc;">#content</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> -webkit-box<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-orient<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-align<span style="color: #00AA00;">:</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> -moz-box<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-orient<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-align<span style="color: #00AA00;">:</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> box<span style="color: #00AA00;">;</span><br />
&nbsp; box-orient<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; box-align<span style="color: #00AA00;">:</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#footer</span> <span style="color: #00AA00;">&#123;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> -webkit-box<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-orient<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-align<span style="color: #00AA00;">:</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> -moz-box<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-orient<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-align<span style="color: #00AA00;">:</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> box<span style="color: #00AA00;">;</span><br />
&nbsp; box-orient<span style="color: #00AA00;">:</span> horizontal<span style="color: #00AA00;">;</span><br />
&nbsp; box-align<span style="color: #00AA00;">:</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
.<span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">180px</span><span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.vs</span> <span style="color: #00AA00;">&#123;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> -webkit-box<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-orient<span style="color: #00AA00;">:</span> vertical<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-align<span style="color: #00AA00;">:</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> -moz-box<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-orient<span style="color: #00AA00;">:</span> vertical<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-align<span style="color: #00AA00;">:</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> box<span style="color: #00AA00;">;</span><br />
&nbsp; box-orient<span style="color: #00AA00;">:</span> vertical<span style="color: #00AA00;">;</span><br />
&nbsp; box-align<span style="color: #00AA00;">:</span> stretch<span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.full</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">gold.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.partial</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">gold.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.no</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> &nbsp; <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
.<span style="color: #993333;">center</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">min-width</span><span style="color: #00AA00;">:</span>&nbsp; <span style="color: #933;">300px</span><span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; <br />
.<span style="color: #000000; font-weight: bold;">right</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">220px</span><span style="color: #00AA00;">;</span><br />
&nbsp; -webkit-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; -moz-box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
&nbsp; box-flex<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#bbbbdd</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #993333;">center</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#dddddd</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #000000; font-weight: bold;">right</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ddbbbb</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#content</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#eeeeff</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#content</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #993333;">center</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span><br />
<br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#content</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #000000; font-weight: bold;">right</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffeeee</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#footer</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ccccee</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#footer</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #993333;">center</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#eeeeee</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#footer</span> <span style="color: #00AA00;">&gt;</span> .<span style="color: #000000; font-weight: bold;">right</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#eecccc</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #6666ff;">.container</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>&#8230; here&#8217;s the HTML of the client side template &#8230;</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;template&quot;</span>&gt;</span><br />
&nbsp; <br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;header&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container contains left_header&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>default left header<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left_header --&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left --&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;vs&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;partial vs&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;no&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;partial vs&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- vs --&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container contains center_header&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span>default Vern's <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;alt-font&quot;</span>&gt;</span>Business Card<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span> Layout<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center_header --&gt;</span> &nbsp;<br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center --&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container contains right_header&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; default right header<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right_header --&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right --&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- header --&gt;</span><br />
&nbsp; <br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hs&quot;</span>&gt;&lt;<a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">img</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;icn&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;green_lightening.png&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; <br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container contains left_sidebar&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; default Left Sidebar blah, blah, blah, blah, blah, blah, blah, blah, blah, blah<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left_sidebar --&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left --&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;vs full&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container contains center_content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span>Center Content<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default This layout is designed to mimic the layout of my business cards and is based on<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://developer.appcelerator.com/blog/2010/06/how-to-full-page-css-3-layout-desktop.html&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; How-To: Full Page CSS 3 Layout (Desktop)<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Copyright 2010 Awesome Productions Ltd. as modified by Vern McGeorge<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center_content --&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center --&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container contains right_sidebar&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; default Right Sidebar<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right_sidebar --&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right --&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- content --&gt;</span><br />
&nbsp; <br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container contains left_footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; default left footer<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left_footer --&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left --&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;vs full&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container contains center_footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default Copyright 2010 Vern McGeorge<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center_footer --&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center --&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container contains right_footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; default right footer<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right_footer --&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right --&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- footer --&gt;</span><br />
&nbsp; <br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- template --&gt;</span></div></td></tr></tbody></table></div>
<p>&#8230; here&#8217;s the HTML of the web page&#8230;</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;TemplateLoader.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span> <br />
&nbsp; &nbsp; &nbsp; window.onload = function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; loadAndApplyTemplate('Client Example Template.html');<br />
&nbsp; &nbsp; &nbsp; };<br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Client Example.css&quot;</span> <span style="color: #000066;">media</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;screen&quot;</span> &nbsp;<span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center_header&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span>Vern's <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;alt-font&quot;</span>&gt;</span>Business Card<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span> Layout<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center_header--&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center_content&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span>Center Content<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; All these layouts are designed to mimic the layout of my business cards.<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The intention of this example (and the examples related to it) is to reduce the HTML markup in the page to the bare minimum<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and apply a template on the client-side to position the page content into the page template.<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; These examples use a combination of a JavaScript Content Loader and the Flexible Box Module and are very loosely based on based on ...<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://developer.appcelerator.com/blog/2010/06/how-to-full-page-css-3-layout-desktop.html&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; How-To: Full Page CSS 3 Layout (Desktop)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The JavaScript Content Loader loads an HTML template into the body of the web page and then processes the template, looking for<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elements that include the &quot;contains&quot; class.<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Specifically, containers in the template have the attribute <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/code.html"><span style="color: #000000; font-weight: bold;">code</span></a>&gt;</span>class=&quot;container, contains, xxx&quot;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/code.html"><span style="color: #000000; font-weight: bold;">code</span></a>&gt;</span> where ...<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;container&quot; is used in the CSS to apply any specific styling desired to all containers.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;contains&quot; is used to tell the <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/code.html"><span style="color: #000000; font-weight: bold;">code</span></a>&gt;</span>applyTemplate();<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/code.html"><span style="color: #000000; font-weight: bold;">code</span></a>&gt;</span> function to look for content and move it into the template.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;xxx&quot; is used to specify the id attribute's value for the content to be moved.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Generally, this works like a champ using the Firefox browser.<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Note that in this example, everything works .<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Chrome has trouble loading the template.<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Other webkit browsers have not been tested.<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Internet Explorer will not work for this example because of non-support for the Flexible Box Model.<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center_content--&gt;</span><br />
<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left_sidebar&quot;</span>&gt;</span> &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>Left Sidebar 1, 2, 3, 4, 5, 6, 7, 8, 9, 10<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left_sidebar--&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right_sidebar&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span>See Also:<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">h3</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span>Flexible Box Layout Module<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;FlexBox Example.html&quot;</span>&gt;</span>Best Result<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span>Template Layout Module<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Template Example.html&quot;</span>&gt;</span>Best Result<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span>Client-Side Template Layout<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h5.html"><span style="color: #000000; font-weight: bold;">h5</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Client Example.html&quot;</span>&gt;</span>Best Result<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Client Example XC.html&quot;</span>&gt;</span>Uncontained Content<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Client Example XT.html&quot;</span>&gt;</span>Missing Template<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right_sidebar--&gt;</span><br />
<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center_footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ddbb00;">&amp;copy;</span> 2010 Vern McGeorge<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center_footer--&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left_header&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>left header<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left_header--&gt;</span><br />
<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right_header&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; right header<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right_header--&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left_footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; left footer<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- left_footer--&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right_footer&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; right footer<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right_footer--&gt;</span><br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>&#8230; and here&#8217;s the result &#8230;</p>
<p><a href="http://vernmcgeorge.com/wp-content/uploads/2010/06/Business-Card-Layout-Client-Side-Layout-Results1.png"><img src="http://vernmcgeorge.com/wp-content/uploads/2010/06/Business-Card-Layout-Client-Side-Layout-Results1-1024x584.png" alt="Business Card Layout - Client-Side Layout - Results" title="Business Card Layout - Client-Side Layout - Results" width="728" height="415" class="alignnone size-large wp-image-141" /></a></p>
<p>If you want to try it, click <a href="http://vernmcgeorge.com/Web Experiments/Layout 2010-06-22/Client Example.html">here </a>(best viewed in Firefox).</p>
<p>The key to this solution is found in the <em>class</em> attribute values for certain <strong>div</strong>s in the HTML template, for example &#8230;</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>44<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container contains center_content&quot;</span>&gt;</span></div></td></tr></tbody></table></div>
<p>&#8230; where the value of the <em>class</em> attribute is interpreted as follows:</p>
<ul>
<li>
              &#8220;container&#8221; is used in the CSS to apply any specific styling desired to all containers. This takes the place of the nested &#8220;content&#8221; <strong>div</strong>s in the original.
            </li>
<li>
              &#8220;contains&#8221; is used to tell the <strong>applyTemplate();</strong> function to look for content and move it into the template.
            </li>
<li>
              &#8220;center_content&#8221; is used to specify the id attribute&#8217;s value for the content to be moved.
            </li>
</ul>
<p>&#8230; which means that the following will be moved from its starting position in the page and placed in the container, thus replacing any default content specified in the template &#8230;</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>18<br />19<br />20<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center_content&quot;</span>&gt;</span><br />
...<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center_content--&gt;</span></div></td></tr></tbody></table></div>
<p>Anyway, what worked well and what didn&#8217;t?</p>
<p>What worked well:</p>
<ul>
<li>Everything good about the Flexible Box Layout.</li>
<li>The order independence and the minimal markup of Template Layout.</li>
</ul>
<p>What didn&#8217;t work well:</p>
<ul>
<li>The footer overlays the main content (in Google Chrome).</li>
<li>Significant flicker on load.</li>
<li>This can only work on <em>moz</em> and <em>webkit</em> engine browsers (which is to say all the good ones) and fails miserably on Internet Explorer.</li>
</ul>
<p>I&#8217;ll address the flicker problem when I talk about how this could be implemented without the JavaScript hack.</p>
<p>First, let&#8217;s look at two obvious problems &#8211; content that doesn&#8217;t match a container and problems loading the template.</p>
<p>If content does match a container in the template, as shown below, &#8230;</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>56<br />57<br />58<br />59<br />60<br />61<br />62<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center_content--&gt;</span><br />
<br />
<span style="display:block;background-color:#ffff66">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Xleft_sidebar&quot;</span>&gt;</span>&nbsp; <br /></span>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>Left Sidebar 1, 2, 3, 4, 5, 6, 7, 8, 9, 10<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- Xleft_sidebar--&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;right_sidebar&quot;</span>&gt;</span></div></td></tr></tbody></table></div>
<p>&#8230; then the content will be rendered at the top of the page and the template and its content will be pushed down.</p>
<p>If you want to try it, click <a href="http://vernmcgeorge.com/Web Experiments/Layout 2010-06-22/Client Example XC.html">here </a>(best viewed in Firefox).</p>
<p>If the template cannot be loaded &#8230;</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;TemplateLoader.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span> <br />
&nbsp; &nbsp; &nbsp; window.onload = function() {<br />
<span style="display:block;background-color:#ffff66">&nbsp; &nbsp; &nbsp; &nbsp; loadAndApplyTemplate('XClient Example Template.html');<br /></span>&nbsp; &nbsp; &nbsp; };<br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>&#8230; then an exception will be raised, the page will render &#8220;as is&#8221;, and the template will not be applied.</p>
<p>If you want to try it, click <a href="http://vernmcgeorge.com/Web Experiments/Layout 2010-06-22/Client Example XT.html">here </a>(best viewed in Firefox).</p>
<p>More subtle errors caused by malformed HTML after the page, template, and page contents have been merged are the not considered here, nor is the impact on tools and validation.</p>
<p>Now could this technique be implemented without JavaScript? It would require two small changes to the HTML specification as shown below.</p>
<p>First, the <strong>link</strong> tag would have to be extended to allow the browser to load the template inside the body of the page without JavaScript. This could be done at the start of the page &#8230;</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>5<br />6<br />7<br />8<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
<span style="display:block;background-color:#ffff66">&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Client Example Template.html&quot;</span> <span style="color: #000066;">media</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;screen&quot;</span> &nbsp;<span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;template&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html&quot;</span>&gt;</span><br /></span>&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center_header&quot;</span>&gt;</span></div></td></tr></tbody></table></div>
<p>&#8230; or it could be done a the end of the page (which is, in effect, what the JavaScript hack is doing &#8230;</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>87<br />88<br />89<br />90<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- right_footer--&gt;</span><br />
&nbsp; <br />
<span style="display:block;background-color:#ffff66">&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Client Example Template.html&quot;</span> <span style="color: #000066;">media</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;screen&quot;</span> &nbsp;<span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;template&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html&quot;</span>&gt;</span> &nbsp; &nbsp;<br /></span>&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>If loaded that the start, the browser should build a &#8220;hit list&#8221; of containers to be filled. If loaded at the end, the browser should build a &#8220;hit list&#8221; of content to be inserted. In either event, the code is not complex.</p>
<p>Note that the <strong>link</strong> tag is defined for other things besides spreadsheets (but not <em>rel=</em>&#8220;template&#8221;) however, browser support is only broadly available for loading stylesheets.</p>
<p>The second change is to define an explicit <em>contains</em> attribute for containers so that the <em>class</em> attribute does not have to be overloaded with this function &#8230;</p>
<div class="codecolorer-container html4strict geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>17<br />18<br />19<br />20<br />21<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span>&gt;</span><br />
<span style="display:block;background-color:#ffff66">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> contains<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center_header&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container&quot;</span>&gt;</span><br /></span>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span>default Vern's <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;alt-font&quot;</span>&gt;</span>Business Card<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span> Layout<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center_header --&gt;</span> &nbsp;<br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- center --&gt;</span></div></td></tr></tbody></table></div>
<p>If you want to mess around with this, I have included all the code and images in <a href="http://vernmcgeorge.com/Web%20Experiments/Layout%202010-06-22/Layout%20Example%20Code.zip">this zip archive</a> &#8211; I ask only that you link back to or otherwise attribute my work to me.</p>
]]></content:encoded>
			<wfw:commentRss>http://vernmcgeorge.com/?feed=rss2&amp;p=113</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embedded Google Wave Experiment</title>
		<link>http://vernmcgeorge.com/?p=95</link>
		<comments>http://vernmcgeorge.com/?p=95#comments</comments>
		<pubDate>Sat, 29 May 2010 08:13:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[public]]></category>
		<category><![CDATA[wave]]></category>

		<guid isPermaLink="false">http://vernmcgeorge.com/?p=95</guid>
		<description><![CDATA[I was very bullish on Google Wave when it was announced last year and I spent a lot of time in the developer sandbox. Feature-wise, I thought it was brilliant &#8211; and I still do. Performance and reliability-wise, not so much &#8211; which is why it made sense to open wave to a community of [...]]]></description>
			<content:encoded><![CDATA[<p>I was very bullish on Google Wave when it was announced last year and I spent a lot of time in the developer sandbox.</p>
<p>Feature-wise, I thought it was brilliant &#8211; and I still do.</p>
<p>Performance and reliability-wise, not so much &#8211; which is why it made sense to open wave to a community of thousands rather than billions.</p>
<p>But Wave is back, it&#8217;s open to the public, and I&#8217;m looking forward to digging back into it again.</p>
<p>So you can have a taste, I have created a wave that is open to the public and embedded it below.</p>
<p>DISCLAIMER: The contents of this wave are unmoderated and I take no responsibility for what others type into this conversation, although if I find objectionable stuff, I will remove it when I see it.</p>
<p>Enjoy.</p>
<p><script src="http://www.google.com/jsapi"></script><script type="text/javascript">// <![CDATA[
 google.load("wave", "1"); google.setOnLoadCallback(function() { new google.wave.WavePanel({target: document.getElementById("waveframe")}).loadWave("googlewave.com!w+QBcz0tzjA");}); 
// ]]&gt;</script></p>
<p>NOTE: If you don&#8217;t see a wave here &#8211; its because something broke &#8211; that&#8217;s not good.</p>
<p>So, I&#8217;ve just spent several hours on the new and improved Google Wave:</p>
<ul>
<li>No crashes!!! Yeah, this is a big deal.</li>
<li>Decent ability to find waves to play in (for example, copy this &#8230;</li>
</ul>
<p style="text-align: center;">with:public about:google&amp;about:wave</p>
<ul>
<li>&#8230; or something like it into your search bar and hit return. I still think they need a &#8220;find waves&#8221; button and a pop-up that looks like Google Advanced Search &#8211; this incantation is still a bit geeky for the general public to embrace anytime soon (like ever).</li>
<li>They still need a better way for me to find the waves I want and ignore the ones I don&#8217;t &#8211; sorting the results of my search by time from last edit as the sole criteria doesn&#8217;t cut it. They need a blend of context, popularity, and activity level &#8211; but if anyone can figure this out, it&#8217;s Google.</li>
</ul>
<p>All in all &#8211; more fun than I remember. Now all I need to do is capture my stuff on the sandbox and get it over to the production Wave. (Which I have now done!)</p>
]]></content:encoded>
			<wfw:commentRss>http://vernmcgeorge.com/?feed=rss2&amp;p=95</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Clifton StrengthsFinder 2.0 Results</title>
		<link>http://vernmcgeorge.com/?p=85</link>
		<comments>http://vernmcgeorge.com/?p=85#comments</comments>
		<pubDate>Sat, 29 May 2010 03:16:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[assessment]]></category>
		<category><![CDATA[psychology]]></category>
		<category><![CDATA[strengths]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://vernmcgeorge.com/?p=85</guid>
		<description><![CDATA[If I want to play big (and I do), I should play to these strengths: Intellection, Ideation, Learner, Strategic, and Input.]]></description>
			<content:encoded><![CDATA[<table style="background: white;">
<tbody>
<tr>
<td>I just finished the <a href="http://gmj.gallup.com/content/102310/clifton-strengthfinder-book-center.aspx">Clifton StrengthsFinder 2.0</a> assessment as outlined in the book StrengthsFinder 2.0 by Tom Rath.</p>
<p>According to this test, my top 5 strengths are:</p>
<ol>
<li><a href="http://gmj.gallup.com/content/691/Intellection.aspx">Intellection</a> &#8211; People strong in the Intellection theme are characterized by their intellectual activity. They are introspective and appreciate intellectual discussions.</li>
<li><a href="http://gmj.gallup.com/content/679/Ideation.aspx">Ideation</a> &#8211; People strong in the Ideation theme are fascinated by ideas. They are able to find connections between seemingly disparate phenomena.</li>
<li><a href="http://gmj.gallup.com/content/694/learner.aspx">Learner</a> &#8211; People strong in the Learner theme have a great desire to learn and want to continuously improve. In particular, the process of learning, rather than the outcome, excites them.</li>
<li><a href="http://gmj.gallup.com/content/718/strategic.aspx">Strategic</a> &#8211; People strong in the Strategic theme create alternative ways to proceed. Faced with any given scenario, they can quickly spot the relevant patterns and issues.</li>
<li><a href="http://gmj.gallup.com/content/688/input.aspx">Input</a> &#8211; People strong in the Input theme have a craving to know more. Often they like to collect and archive all kinds of information.</li>
</ol>
<p>If I want to play big (and I do), I should play to these strengths.</td>
<td>
<p><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=vern-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=159562015X" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://vernmcgeorge.com/?feed=rss2&amp;p=85</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Can&#8217;t Microsoft Get This Right?</title>
		<link>http://vernmcgeorge.com/?p=79</link>
		<comments>http://vernmcgeorge.com/?p=79#comments</comments>
		<pubDate>Tue, 25 May 2010 05:32:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[truecrypt]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://vernmcgeorge.com/?p=79</guid>
		<description><![CDATA[So, once again, I came into my office this morning to find my system rebooted in spite of my best efforts to configure Windows to &#8220;Download updates but let me choose whether to install them.&#8221; I would guess that from Microsoft&#8217;s position, &#8220;There are some updates that are just so super-important that we must install [...]]]></description>
			<content:encoded><![CDATA[<p>So, once again, I came into my office this morning to find my system rebooted in spite of my best efforts to configure Windows to &#8220;Download updates but let me choose whether to install them.&#8221;</p>
<p>I would guess that from Microsoft&#8217;s position, &#8220;There are some updates that are just so super-important that we must install them immediately.&#8221;</p>
<p>No, you arrogant SOBs &#8211; what&#8217;s important, what&#8217;s really important, is that you not lose my work.</p>
<p>I run VMware with Ubuntu and Win XP guest systems on top of a Win 7 host. Furthermore, there is a TrueCrypt repository mounted on the Win XP guest. I&#8217;ve already had guest operating systems get munged up and I&#8217;ve been able to recover from that. What I dread is the day that I find one of these systems (or worse yet, my TrueCrypt data) irretrievably corrupted.</p>
<p>The kicker is that with a gram of creativity, Microsoft could keep my system safer <strong><em>and</em></strong> significantly reduce the risk of losing any of my data.</p>
<p>How you ask?</p>
<p>Simple, rather than rebooting my system, display a pop-up that tells me I must reboot to install an important security update and then kill my network connections &#8212; thus isolating my at risk system from receiving, or causing any further harm. Please note that the patch is already loaded and partially installed on my system at the point where Microsoft traditionally jerks the rug out from under me &#8211; I don&#8217;t need the network connections.</p>
<p>I come in, I see the popup, I snooze the popup, and I start saving all my data locally. After I&#8217;ve saved everything I need and shut down anything that might get corrupted, I reboot my system.</p>
<p>I might still be upset at this invasive 10-20 minute process, but not nearly as enraged as I get when Microsoft wastes several hours of my time unscrewing the screwed up or replacing hours, days, or weeks worth of lost work.</p>
<p>I wish that today was an isolated incident, but it&#8217;s not. I get this 2-3 times per month. Multiply that by the tens of millions of Windows machines out there &#8211; this process is worth getting right guys!</p>
]]></content:encoded>
			<wfw:commentRss>http://vernmcgeorge.com/?feed=rss2&amp;p=79</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Good, The Bad, and The Ugly</title>
		<link>http://vernmcgeorge.com/?p=69</link>
		<comments>http://vernmcgeorge.com/?p=69#comments</comments>
		<pubDate>Wed, 19 May 2010 19:54:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[blueray]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[eudora]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://vernmcgeorge.com/?p=69</guid>
		<description><![CDATA[So how did my whole transition to Ubuntu in a virtual machine work out?]]></description>
			<content:encoded><![CDATA[<p>Too long ago I posted in <a href="http://vernmcgeorge.com/?p=36">From Windows to Linux</a> about my transition from my very old Dell laptop to my new HP laptop.</p>
<p>It&#8217;s been an adventure and it ain&#8217;t over yet.</p>
<p>The good news is that the grand scheme works pretty well. I run a host OS with VMware Workstation  and two guests systems &#8211; Ubuntu for as much as I can and WinXP for the rest. The transition from Eudora on WinXP to Evolution on Ubuntu was difficult but the end result is better. I would like to figure out where Evolution stores its stuff and make sure that it is under My Dropbox for backup purposes and I am still doing too many things under Windows as I climb up the learning curve on Linux alternatives. But using Dropbox (see <a href="http://vernmcgeorge.com/?p=61">Loving Dropbox</a>) makes switching back and forth and working between platforms pretty painless.</p>
<p>I even, for grins and giggles, used the various sources around the web to create a Snow Leopard virtual machine. It&#8217;s completely against the Apple license, but it was a fun experiment and it runs okay by itself. But as one of three VMs, it starts to degrade the performance pretty severely. I only run one program on the Mac (Scrivener &#8211; highly recommended for writers) and it runs just fine on my Mac Mini so there it will stay (although I can see buying a small, used Macbook instead of a new netbook for just this program &#8212; yes, it&#8217;s that good).</p>
<p>The bad news is that I gave up a lot when I swapped Win 7 out in favor of Ubuntu as the host OS. Win 7 on the physical hardware is quite deeply integrated with the Blue-ray player, all the functional buttons above the keyboard (media player controls, sound controls and wireless controls), and the cute little remote tucked into the side of the laptop. All that falls by the wayside when I use Ubuntu for the host. Fortunately, my VMware Workstation License will work for either host, so switching back to Win 7 was a no brainer.</p>
<p>Now, for the ugly part &#8230;</p>
<p>The Ubuntu host pops up in a few seconds (okay, maybe 20-30) but Win 7 takes twice as long. Similarly, Ubuntu takes 20-30 seconds to shut down. Since a recent update on Win 7, shutting down takes somewhere between &#8220;forever&#8221; and &#8220;longer than that&#8221; (okay, I exaggerate, ~2-5 minutes). Updating Ubuntu is just as easy and less invasive to update (fewer updates and fewer reboots after updating) than Win 7.</p>
<p>Every now and again, the Win 7 host just loses the USB connection to my external keyboard and mouse. Ubuntu never lost this connection. The connection is long and circuitous (wireless keyboard and mouse &lt;&#8211;&gt; wireless receiver &lt;&#8211;&gt; 4-port KVM switch &lt;&#8211;&gt; PS/2 cables &lt;&#8211;&gt; PS/2 to USB converter &lt;&#8211;&gt; 4-port USB hub &lt;&#8211;&gt; HP laptop) so, no I don&#8217;t exactly where and why things drop out, and no, I can&#8217;t make this simpler without sacrificing the infrastructure that supports three other machines in my office.</p>
<p>Sometimes, if I am very lucky, I can unplug the last USB cable from the hub to the laptop, plug it back in, and get everything working again.</p>
<p>If I am not lucky I have to suspend my Win XP virtual machine &#8220;as is&#8221; so I can resume it later &#8220;as was&#8221; (not too painful and one of the key motivations for my &#8220;do all the useful work inside a VM&#8221; strategy); shut down by Ubuntu VM (as suspending it makes the time wrong when it comes back); reboot the host; reboot Ubuntu VM; and resume the Win XP VM. All this takes ~10 minutes and it stops being fun after the first time. Yesterday, I had to do this four times, this morning once (I got lucky the second time).</p>
<p>I&#8217;d love to find a solution to my time problems with Ubuntu. Even with administrative privilege, I cannot resynchronize the time with an outside NTP server. I&#8217;ve beaten PolicyKit bloody to no effect. Fortunately, if I shut the system down out from under Chrome, it will offer to bring back all my open tabs. That&#8217;s a blessing &#8211; not all programs are so forgiving.</p>
<p>The long and short of it is that I&#8217;m on the cusp of switching back to my Ubuntu host if I don&#8217;t find some way better solutions to these problems very soon. The hell with Blue-ray.</p>
]]></content:encoded>
			<wfw:commentRss>http://vernmcgeorge.com/?feed=rss2&amp;p=69</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Death of Buffalo Wings?</title>
		<link>http://vernmcgeorge.com/?p=63</link>
		<comments>http://vernmcgeorge.com/?p=63#comments</comments>
		<pubDate>Thu, 13 May 2010 22:59:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[food]]></category>
		<category><![CDATA[travel]]></category>

		<guid isPermaLink="false">http://vernmcgeorge.com/?p=63</guid>
		<description><![CDATA[Has Buffalo thrown their namesake delicacy under the bus?]]></description>
			<content:encoded><![CDATA[<p>I heard some sad news out of Buffalo, NY on the radio today. They were reporting on Barak Obama&#8217;s visit and his lunch at a landmark restaurant.</p>
<p>As it happens, I traveled to Buffalo several times in the 1980s on business. While there, the local HP field people introduced me to &#8220;Buffalo Wings.&#8221;</p>
<p>I&#8217;m not talking about the crap we get here in California restaurants where the part of the chicken that used to be thrown away is mixed into a concoction of  three parts sauce, three parts bone, two parts cartilage, and one part meat, served up on a bed of lettuce with watery ranch dressing, and called an appetizer.</p>
<p>I&#8217;m talking about 2-3 chicken fillets, fried or grilled, served with fries and a chunky sauce that could run anywhere from spicy to hot to thermonuclear. Yum!</p>
<p>I&#8217;ve looked in almost every city I&#8217;ve ever visited since for these kind of Buffalo Wings &#8211; without success.</p>
<p>In the report they described Obama&#8217;s order &#8211; a dozen of this BBQ, a half dozen spicy, and a half dozen of something else. One of two things seems true. Either he was ordering for his entire entourage, or Buffalo has sold out their famous local delicacy.</p>
<p>A tragic day indeed if this is the case.</p>
]]></content:encoded>
			<wfw:commentRss>http://vernmcgeorge.com/?feed=rss2&amp;p=63</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loving DropBox</title>
		<link>http://vernmcgeorge.com/?p=61</link>
		<comments>http://vernmcgeorge.com/?p=61#comments</comments>
		<pubDate>Tue, 11 May 2010 20:36:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[mac linux]]></category>
		<category><![CDATA[truecrypt]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://vernmcgeorge.com/?p=61</guid>
		<description><![CDATA[How I do cross-platform synchronization and offline backup.]]></description>
			<content:encoded><![CDATA[<p>I switched to DropBox when I got my new Windows 7 laptop and found that Microsoft, bless their hearts, had decided to move everything around &#8211; thereby breaking all of my Backer 6 jobs that I had been using to synchronize files across my home network. As long as it was just Windows XP running on my laptop and my tower, Backer 6 worked great. Unfortunately, adding Windows 7, Ubuntu (which is my platform of choice for everything having been pissed of yet one more time by Microsoft), and Mac (which is the only platform that runs my new writing software (Scrivener) pretty much eliminated Backer 6 (which I loved BTW) as a solution.</p>
<p>I&#8217;ve also been thinking for months that I needed an offsite backup solution anyway. A friend suggested DropBox.</p>
<p>Now, with a few exceptions, I keep most of my stuff in the My Dropbox folder which is directly under My Documents (or under my home folder on Linux and Mac). The two exceptions are my music collection (which would put me over the limits of my 50GB plan) and private stuff (journal, Quicken and TurboTax, etc.).</p>
<p>For private files, I either keep them on a single computer, or I keep them in a Truecrypt volume. The Truecrypt volume is stored on the disc as a data file which you can mount just like you would mount another disk or a network share. While this file can&#8217;t be in My DropBox (Truecrypt needs exclusive access to it which DropBox will not allow), I can, after dismounting the volume, drag a copy of the data file to My DropBox for backup. Be forewarned, keep these volume small. My 2GB disk image takes about 40 minutes to upload. Fortunately, DropBox is smart enough to redirect all my other machines so synchronization on my local network is done via system to system transfers on the local network instead of multiple downloads from the DropBox servers.</p>
<p>I love that fact that I can change a file on any platform (WinXP, Win7, Mac, or Ubuntu running on physical hardware or as a virtual machine) and the change is quickly reflected across all my running systems.</p>
]]></content:encoded>
			<wfw:commentRss>http://vernmcgeorge.com/?feed=rss2&amp;p=61</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
