Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I wouldn't necessarily recommend doing two column layout this way. Floats tend to work better in a cross-browser kind of way. That being said, the main thing you seem to be missing is height for your Main div. Put 100% height in and try that.</p> <p>In all honesty I've tried absolute, relative and absolute+relative positioning but nearly always abandon it due to some issue on some browser or something just not being quite right.</p> <p>For a float based approach, start with something like (works in Chrome 2, FF 3.5, IE8):</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;2 columns&lt;/title&gt; &lt;style type="text/css"&gt; html, body, div { margin: 0; padding: 0; border: 0 none; } #Main { height: 100%; padding-left: 280px; } #LeftSection { margin-left: -280px; width: 280px; height: 100%; background: yellow; float: left; } #Logo { margin: 10px 0px 10px 30px; } #dvPanelMenu { text-align: left; } #RightSection { width: 100%; background: blue; height: 100%; min-height: 100%; padding-top: 70px; } #dvTopMenu { float: left; margin: -65px 0 0 20px; height: 40px; background: red; width: 300px } #dvLogin { float: right; margin: -65px 50px 0 0; font-family: Tahoma; font-size: 11px; text-align: left; background: green; height: 50px; width: 200px; } #dvContent { border: 1px dotted black; width: 100%; border: 1px dotted black; background: orange; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="Main"&gt; &lt;div id="LeftSection"&gt; &lt;div id="Logo"&gt;Logo&lt;/div&gt; &lt;div id="dvPanelMenu"&gt;dvPanelMenu&lt;/div&gt; &lt;/div&gt; &lt;div id="RightSection"&gt; &lt;div id="dvTopMenu"&gt;dvTopMenu&lt;/div&gt; &lt;div id="dvLogin"&gt;dvLogin&lt;/div&gt; &lt;div id="dvContent"&gt;dvContent&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&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. 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