Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have reworked my sample template so you can see all three of your requested formats in action.</p> <p>This is a CSS solution, no tables involved. I have set this up so the side columns are fixed width the header/footer are fixed height. Everything else is fluid.</p> <p>With all modern browsers, excepting for IE7, the content is centered both vertically and horizontally. IE7 has issues with its box model. I believe IE8 have these resolved.</p> <p>The center box does center vertically in IE7 because I nested a 1 cell table in the center div as a hack around IE7 box model problems. I know this is dumb and ugly but it was just to show it worked.</p> <p>See it in action - <a href="http://sontag.ca/TheChallenge/Three%20Column%20Full%20Screen%20Layout.html" rel="nofollow noreferrer">Three Column Full Screen Layout</a></p> <p>I am a bit surprised this answer did not garner a single vote or capture the bounty. It works, its simple, and it fulfills everything the OP asked for. Oh well.</p> <h2>The CSS</h2> <pre><code>DIV { text-align: center } #h0, #f0 { float: left; clear: both } #h1, #f1 { height: 100px; float: none; width: 800px } #l0 { float: left; clear: left; } #c0, #r0 { float: left; clear: none } #l1, #r1 { width: 150px } #c1 { width: 500px } #l1, #r1, #c1 { height: 350px } #h0, #f0 { background-color: orange } #l0 { background-color: red } #r0 { background-color: blue } #c0 { background-color: yellow } #h1, #f1, #l1, #r1, #c1 { display: table-cell; vertical-align: middle; } </code></pre> <h2>The HTML</h2> <pre><code>&lt;div id="h0"&gt;&lt;div id="h1"&gt; header &lt;/div&gt;&lt;/div&gt; &lt;div id="l0"&gt;&lt;div id="l1"&gt; left column &lt;/div&gt;&lt;/div&gt; &lt;div id="c0"&gt;&lt;div id="c1"&gt; &lt;img alt="dilbert (3K)" src="../gif/dilbert.gif" height="82" width="80" /&gt; &lt;/div&gt;&lt;/div&gt; &lt;div id="r0"&gt;&lt;div id="r1"&gt; right column &lt;/div&gt;&lt;/div&gt; &lt;div id="f0"&gt;&lt;div id="f1"&gt; footer &lt;/div&gt;&lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload