Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm sorry folks, but the only way I can see this working including IEs 6 and 7 is using <strong>tables</strong>.</p> <p><strong>Working example:</strong> <a href="http://www.pekkagaiser.com/stuff/page.php" rel="nofollow noreferrer"><strong>Here</strong></a></p> <p>The "Greeble" text (I don't really know what a greeble is :) distorts the resizing somewhat, that'll disappear when the columns have background images only.</p> <p><strong>Issues:</strong> The columns need to contain <em>something</em> to be rendered by IE. The <code>&amp;nbsp;</code> I built in will prevent the complete disappearance of the right and left columns. You will have to find a way around that, maybe with a 1x1 Pixel image or something. You will always have to have <em>some</em> content - even if just 1 pixel wide - in all columns.</p> <p><strong>Relies on:</strong> Tables with an unspecified width rendering the way they do. I think this is pretty reliable, tough.</p> <p><strong>Tested in:</strong> IE 5.5 and greater, Firefox</p> <p><strong>To anybody who dares downvote this because tables are evil:</strong> Find me a better, CSS-based solution that works in IE6 as well, and I will gladly remove mine.</p> <p><strong>HTML:</strong> No separation between markup and CSS, no semantics, just the working prototype.</p> <pre><code>&lt;body style="margin: 0px"&gt; &lt;table style="width: 100%; height: 100%" border="0" cellspacing="0" cellpadding="0"&gt; &lt;tr&gt; &lt;td style="background-color: orange; height: 50%; color: white"&gt; Greeble top left &lt;/td&gt; &lt;!-- The content area --&gt; &lt;td style="width: 960px" rowspan="2"&gt; &lt;!-- This is important, serves as min-width replacement. --&gt; &lt;div style="width: 960px; text-align: center"&gt; &amp;nbsp; I will always be 960 pixels wide &lt;/div&gt; &lt;/td&gt; &lt;td style="background-color: blue; color: white"&gt; Greeble top right &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="background-color: blue; height: 50%; color: white"&gt; Greeble bottom left &lt;/td&gt; &lt;td style="background-color: green; height: 50%; color: white"&gt; Greeble bottom right &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&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.
 

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