Note that there are some explanatory texts on larger screens.

plurals
  1. PO( height 100% ) plus (2-column css)
    primarykey
    data
    text
    <p><strong>I need a 2-column interface to stretch 100% height of the page.</strong> </p> <p>PS: If the columns are too long, the scroll bar should appear. After this question is solved, I'll try to add a sticky footer to the interface.</p> <p>PPS:please, no solutions using "fake" background image</p> <p>I've really tried hard to find the answer by myself... Thanks if you have any idea</p> <p>here's the code</p> <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB"&gt; &lt;head&gt; &lt;title&gt;2 Column CSS Demo - Equal Height Columns with Cross-Browser CSS&lt;/title&gt; &lt;style media="screen" type="text/css"&gt; /* &lt;!-- */ *{ margin:0; padding:0; } html { background-color: #ccc; height: 100%; } body { background-color: white; width: 600px; margin: 0 auto; height:100%; position: relative; border-left: 1px solid #888; border-right: 2px solid black; } #footer { clear:both; width:100%; height:0px;font-size:0px; } #container2 { clear:left; float:left; width:600px; overflow:hidden; background:#ffa7a7; } #container1 { float:left; width:600px; position:relative; right:200px; background:#fff689; } #col1 { float:left; width:400px; position:relative; left:200px; overflow:hidden; } #col2 { float:left; width:200px; position:relative; left:200px; overflow:hidden; } /* --&gt; */ &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="container2"&gt; &lt;div id="container1"&gt; &lt;div id="col1"&gt; aaaa a a a a a a a a a aa aa a a a a a a a a aa aa a a a a a a a a aa aa a a a a a a a aa a a a a aa aa a a a a a a a a aa aa a a a a a a a a aa aa a a a a aa a a a a aa aa a &lt;/div&gt; &lt;div id="col2"&gt; fghdfghsfgddn fghdfghsfgddn fghdfghsfgddn fghdfghsfgddn fghdfghsfgddn fghdfghsfgddn fghdfghsfgddn v &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="footer"&gt; &amp;nbsp; &lt;/div&gt; &lt;/body&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
 

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