Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>UPDATED:</strong></p> <p>i have found this article </p> <blockquote> <ul> <li><a href="http://www.alistapart.com/articles/conflictingabsolutepositions/" rel="nofollow noreferrer">http://www.alistapart.com/articles/conflictingabsolutepositions/</a></li> </ul> </blockquote> <p>just CSS &amp; HTML i think is what you are looking for!</p> <p><strong>FINAL DEMO</strong>: <a href="http://jsbin.com/icemo3/24" rel="nofollow noreferrer">http://jsbin.com/icemo3/24</a></p> <p>In responce to your last comment, i have worked out this solution that require also a bit of jquery (javascript) please see the demo and use the demo code!</p> <pre><code>$(window).load(function() { getWindowProportion() }); $(window).resize(function() { getWindowProportion() }); function getWindowProportion() { $('#wrapper').attr('style', 'width:' + $(window).width() + 'px'); $('#header').attr('style', 'height:200px;width:' + $(window).width() + 'px'); $('#navigation').attr('style', 'height:' + ($(window).height() - 200) + 'px;top:200px;width:300px'); $('#content').attr('style', 'width:' + ($(window).width() - 300) + 'px;top:200px;height:' + ($(window).height() - 200) + 'px;left:' + ($('#navigation').width()) + 'px'); }; </code></pre> <hr> <p><strong>CSS</strong> DEMO 2: <a href="http://jsbin.com/icemo3/2" rel="nofollow noreferrer">http://jsbin.com/icemo3/2</a></p> <p><strong>CSS</strong> DEMO 3: <a href="http://jsbin.com/icemo3/3" rel="nofollow noreferrer">http://jsbin.com/icemo3/3</a></p> <pre><code>* { margin:0; padding:0 } html, body { margin:0; padding:0; position:relative; overflow:auto; width:100%; height:100%; } #content { float:left; width: 80%; background: cyan; height:80%; top:20%; left:20% } #navigation { float:left; width: 20%; background: green; height:80%; top:20% } #header { width: 100%; background: red; height:20%; } .scrollme { margin:0; padding:0; overflow: auto; position:absolute; } p { margin:10px } &lt;div id="header" class="scrollme"&gt;&lt;p&gt;some text here&lt;/p&gt;&lt;/div&gt; &lt;div id="navigation" class="scrollme"&gt;&lt;p&gt;some text here&lt;/p&gt;&lt;/div&gt; &lt;div id="content" class="scrollme"&gt;&lt;p&gt;some text here&lt;/p&gt;&lt;/div&gt; </code></pre> <p><strong>NOTE:</strong></p> <pre><code>tested on: IE6+ Chrome Firefox Opera </code></pre> <ol> <li>each section have its own scroll-bar!</li> <li>each section have 100% width and height!</li> <li>no browser window scroll-bar appear!</li> <li>each section always retain its proportion</li> <li>work on all screen resolution</li> </ol>
 

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