<?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>Saki's Blog &#187; column</title>
	<atom:link href="http://blog.extjs.eu/tag/column/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.extjs.eu</link>
	<description>For good of all productive developers</description>
	<lastBuildDate>Sun, 21 Nov 2010 01:36:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simplest 3 Columns Layout with CSS</title>
		<link>http://blog.extjs.eu/know-how/simplest-3-columns-layout-with-css/</link>
		<comments>http://blog.extjs.eu/know-how/simplest-3-columns-layout-with-css/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 02:30:33 +0000</pubDate>
		<dc:creator>Saki</dc:creator>
				<category><![CDATA[Know-how]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://blog.extjs.eu/?p=24</guid>
		<description><![CDATA[<br/>After experimenting with Designing a 3 columns web page using TableLayout
 I have came with the solution that is, IMO, simplest possible:

&#60;!-- vim: ts=2:sw=2:nu:fdc=2:spell
&#160;
An Application Page
&#160;
@author    Ing.Jozef Sakáloš
@copyright (c) 2008, by Ing. Jozef Sakáloš
@date      2. April 2008
@version   $Id$
&#160;
@license application.html is licensed under the terms of [...]]]></description>
			<content:encoded><![CDATA[<br/><p>After experimenting with<a title="Permanent Link: Designing a 3 columns web page using TableLayout" rel="bookmark" href="../know-how/designing-a-3-columns-web-page-using-tablelayout/"> Designing a 3 columns web page using TableLayout<br />
</a> I have came with the solution that is, IMO, simplest possible:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!-- vim: ts=2:sw=2:nu:fdc=2:spell</span>
&nbsp;
<span style="color: #808080; font-style: italic;">An Application Page</span>
&nbsp;
<span style="color: #808080; font-style: italic;">@author    Ing.Jozef Sakáloš</span>
<span style="color: #808080; font-style: italic;">@copyright (c) 2008, by Ing. Jozef Sakáloš</span>
<span style="color: #808080; font-style: italic;">@date      2. April 2008</span>
<span style="color: #808080; font-style: italic;">@version   $Id$</span>
&nbsp;
<span style="color: #808080; font-style: italic;">@license application.html is licensed under the terms of the Open Source</span>
<span style="color: #808080; font-style: italic;">LGPL 3.0 license. Commercial use is permitted to the extent that the </span>
<span style="color: #808080; font-style: italic;">code/component(s) do NOT become part of another Open Source or Commercially</span>
<span style="color: #808080; font-style: italic;">licensed development library or toolkit without explicit permission.</span>
&nbsp;
<span style="color: #808080; font-style: italic;">License details: http://www.gnu.org/licenses/lgpl.html</span>
<span style="color: #808080; font-style: italic;">--&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <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> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;./ext/resources/css/ext-all.css&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;shortcut icon&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../img/extjs.ico&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>3 Columns Layout Example<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">&lt;!-- Layout Mandatory Styles --&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">style</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span>
    #ct-wrap {
      text-align:center;
    }
    #ct {
      text-align:left;
      margin:auto;
    }
    #north, #navlinks, #south {
      float:none;
      clear:both;
    }
    #west {
      float:left;
      clear:left;
    }
    #center {
      float:left;
    }
    #east {
      float:right;
      clear:right;
    }
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">style</span>&gt;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">&lt;!-- Mandatory Dimensions --&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">style</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span>
    #ct {
      width:640px;
    }
    #west {
      width:180px;
    }
    #east {
      width: 80px;
    }
    #center {
      width: 380px;
    }
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">style</span>&gt;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">&lt;!-- This Example Customizations --&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">style</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span>
    body {
      font-size:13px;
      vertical-align:middle;
      margin:0;
      padding:0;
    }
    #north {
      height:40px;
      color:white;
      background:#203d8e;
    }
    #navlinks {
      height: 24px;
      color:blue;
      background:#ffc800;
    }
    #west, #center, #east {
      height:400px;
    }
    #west, #east {
      color:white;
      background:#203d8e;
    }
    #south {
      height: 30px;
      background:#ffc800;
    }
    #center {
      background:#e8e8e8;
    }
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">style</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ct-wrap&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ct&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;north&quot;</span>&gt;</span>north<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;navlinks&quot;</span>&gt;</span>navlinks<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;west&quot;</span>&gt;</span>west<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span>&gt;</span>center<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;east&quot;</span>&gt;</span>east<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;south&quot;</span>&gt;</span>south<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- eof --&gt;</span></pre></div></div>

<p>Works perfectly cross-browser in both standards compliant mode and quirks mode.</p>
<p>Online example of the above: <a href="http://extjs.eu/examples/3collayout.html" target="_blank" rel="nofollow">Simplest 3 Columns Layout with CSS Example</a><br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><div class="paypal-donations"><input type="hidden" name="cmd" value="_donations" /><input type="hidden" name="business" value="js02@aariadne.com" /><input type="hidden" name="item_number" value="Blog Donation" /><input type="hidden" name="currency_code" value="EUR" /><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" name="submit" alt="PayPal - The safer, easier way to pay online." /><img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /></div></form></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.extjs.eu/know-how/simplest-3-columns-layout-with-css/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Designing a 3 columns web page using TableLayout</title>
		<link>http://blog.extjs.eu/know-how/designing-a-3-columns-web-page-using-tablelayout/</link>
		<comments>http://blog.extjs.eu/know-how/designing-a-3-columns-web-page-using-tablelayout/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 22:26:48 +0000</pubDate>
		<dc:creator>Saki</dc:creator>
				<category><![CDATA[Know-how]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[extjs]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://blog.extjs.eu/?p=21</guid>
		<description><![CDATA[<br/>See also:  Simplest 3 Columns Layout with CSS
Design Goals
I have decided to re-design my webpage because I used some nested floating divs and I started to lose track of the hierarchy and css rules assigned to them. The design goals were:

Fixed width content area always displayed centered in the browser window
Fixed width columns: left [...]]]></description>
			<content:encoded><![CDATA[<br/><p>See also: <b><a href="http://blog.extjs.eu/know-how/simplest-3-columns-layout-with-css" rel="nofollow"> Simplest 3 Columns Layout with CSS</a></b></p>
<h1>Design Goals</h1>
<p>I have decided to re-design my webpage because I used some nested floating divs and I started to lose track of the hierarchy and css rules assigned to them. The design goals were:</p>
<ul>
<li>Fixed width content area always displayed centered in the browser window</li>
<li>Fixed width columns: left for navigation, center for content and right for AdSense</li>
<li>Standard 5 regions: north, west, center, east and south (not used yet)</li>
<li>Use Ext as much as possible</li>
<li>Keep css stylesheets as simple and straightforward as possible</li>
<li>Content generated by Ext</li>
<li>Cross-browser</li>
</ul>
<p><br/></p>
<h1>The Main Container</h1>
<p>Let&#8217;s create it as first parent of body:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ct&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span></pre></div></div>

<p>and css:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#ct</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1020px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>So far so good, this works fine in all major browser but not, as usually, in Internet Explorer. Therefore, we need one more css rule that can create some minor problems we will have to solve later such as combo box dropdown list will be center aligned. Anyway, I haven&#8217;t found any better way for IE.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* not needed if you use a strict doctype */</span>
body <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><span style="color:#004488;"><b>Update</b>: I have meanwhile found that IE supports auto margins the expected way in strict mode. On the other hand, Jack Slocum advocates against using a doctype as it can trigger IE bugs resulting in rendering problems.</span></p>
<p><span style="color:#004488;">Now, it is up to you if you align body text to center and then you need to fix many Ext classes that inherits this rule from body or you use a strict doctype and you will risk the IE mis-behavior.</span></p>
<p><span style="color:#004488;">I have chosen to use the xhtml 1.0 strict doctype. Do not use the above text-align:center body rule if you use a strict doctype.</span></p>
<p><br/></p>
<h1>Ext Layout</h1>
<p>I needed north, west, center, east and south so first idea was to use BorderLayout rendered to <em>ct</em> and with <em>autoHeight:true</em>. After some trials and errors I found out that BorderLayout is not usable for this purpose so I&#8217;ve switched to <b>TableLayout</b>. </p>
<p>Now, the outermost container is Ext.Panel with TableLayout configured like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> layoutPanel <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">Panel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
     id<span style="color: #339933;">:</span><span style="color: #3366CC;">'main-layout'</span>
    <span style="color: #339933;">,</span>layout<span style="color: #339933;">:</span><span style="color: #3366CC;">'table'</span>
    <span style="color: #339933;">,</span>layoutConfig<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>columns<span style="color: #339933;">:</span> <span style="color: #CC0000;">3</span><span style="color: #009900;">&#125;</span>
    <span style="color: #339933;">,</span>defaults<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>border<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#125;</span>
    <span style="color: #339933;">,</span>items<span style="color: #339933;">:</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#123;</span>
    	 id<span style="color: #339933;">:</span><span style="color: #3366CC;">'north'</span>
    	<span style="color: #339933;">,</span>colspan<span style="color: #339933;">:</span><span style="color: #CC0000;">3</span>
    	<span style="color: #339933;">,</span>cellCls<span style="color: #339933;">:</span><span style="color: #3366CC;">'td-north'</span>
    	<span style="color: #339933;">,</span>border<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span>
    	<span style="color: #339933;">,</span>contentEl<span style="color: #339933;">:</span><span style="color: #3366CC;">'north-content'</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>
    	 id<span style="color: #339933;">:</span><span style="color: #3366CC;">'west'</span>
    	<span style="color: #339933;">,</span>cellCls<span style="color: #339933;">:</span><span style="color: #3366CC;">'td-west'</span>
    	<span style="color: #339933;">,</span>border<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span>
    	<span style="color: #339933;">,</span>contentEl<span style="color: #339933;">:</span><span style="color: #3366CC;">'west-content'</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>
    	 id<span style="color: #339933;">:</span><span style="color: #3366CC;">'center'</span>
    	<span style="color: #339933;">,</span>cellCls<span style="color: #339933;">:</span><span style="color: #3366CC;">'td-center'</span>
    	<span style="color: #339933;">,</span>border<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>
     	 id<span style="color: #339933;">:</span><span style="color: #3366CC;">'east'</span>
    	<span style="color: #339933;">,</span>cellCls<span style="color: #339933;">:</span><span style="color: #3366CC;">'td-east'</span>
    	<span style="color: #339933;">,</span>border<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span>
    	<span style="color: #339933;">,</span>contentEl<span style="color: #339933;">:</span><span style="color: #3366CC;">'adsense'</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>
    	 id<span style="color: #339933;">:</span><span style="color: #3366CC;">'south'</span>
    	<span style="color: #339933;">,</span>colspan<span style="color: #339933;">:</span><span style="color: #CC0000;">3</span>
    	<span style="color: #339933;">,</span>cellCls<span style="color: #339933;">:</span><span style="color: #3366CC;">'td-south'</span>
    	<span style="color: #339933;">,</span>border<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#93;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><br/></p>
<h1>Content Elements</h1>
<p>Some page content is statical, written in HTML markup so I have used <em>contentEl:&#8217;div-id&#8217;</em> to put it to right place (cell) of the layout. I already have divs with ids: north-content, west-content and adsense.</p>
<p>Some stylesheets are needed too at this point, keeping in mind that <em>cellCls</em> is assigned to the table cells (tds) and that table does not fill 100% of the container by default. This css hadles it:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* not needed if you use a strict doctype */</span>
body <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#ct</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1020px</span><span style="color: #00AA00;">;</span>
  <span style="color: #808080; font-style: italic;">/* not needed if you use a strict doctype */</span>
  <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#main-layout</span> table <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.td-north</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">90px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.td-west</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">190px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.td-center</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">700px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.td-east</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.td-south</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><br/></p>
<h1>Conclusion</h1>
<p>Finally, it is easy. I have all design goals in and if I need to render anything to, let&#8217;s say center, I just grab a reference to the panel&#8217;s body and render to it. For example:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">Ext.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'center'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">body</span>.<span style="color: #660066;">update</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Center Content'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>or whatever else. If I need to put a static content in it I write it to a container and I&#8217;ll use <em>contentEl</em> as I did for <em>north</em> and <em>east</em>.</p>
<p>And the result is: <a href="http://extjs.eu">http://extjs.eu<a>. I like it!</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><div class="paypal-donations"><input type="hidden" name="cmd" value="_donations" /><input type="hidden" name="business" value="js02@aariadne.com" /><input type="hidden" name="item_number" value="Blog Donation" /><input type="hidden" name="currency_code" value="EUR" /><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" name="submit" alt="PayPal - The safer, easier way to pay online." /><img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /></div></form>
]]></content:encoded>
			<wfw:commentRss>http://blog.extjs.eu/know-how/designing-a-3-columns-web-page-using-tablelayout/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

