Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Divs are a great way to do it. You can use a floated layout with a containing div around the two right divs. Here is some code to show you what I mean:</p> <p><strong>HTML</strong></p> <pre><code>&lt;div id="wrapper" class="clearfix"&gt; &lt;div id="sidebar"&gt;&lt;/div&gt; &lt;div id="main_content"&gt; &lt;div id="top_right"&gt;&lt;/div&gt; &lt;div id="bottom_right"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>CSS</strong></p> <pre><code>#wrapper { background: #44BBF0; } #sidebar { float: left; width: 100px; height: 500px; background: #485F40; } #main_content { float: right; } #top_right { width: 200px; height: 200px; background: #FF553F; } #botom_right { width: 200px; height: 300px; background: #B0DE91; } .clearfix:before, .clearfix:after { content: "."; display: block; height: 0; overflow: hidden; } .clearfix:after { clear: both; } .clearfix { zoom: 1; /* IE &lt; 8 */ } </code></pre> <p>Here is a JS fiddle link to show you how it looks: <a href="http://jsfiddle.net/ddxYB/" rel="nofollow noreferrer">http://jsfiddle.net/ddxYB/</a></p> <p>Make sure to clear the wrapper div. Because it contains only floated elements, it will have no height if you don't. In the example I used, I set heights to save time, but this would just as well if you used automatic heights and let the divs take on the height of the content.</p> <p>This is a screenshot from the JSFiddle code: </p> <p><img src="https://i.stack.imgur.com/aQbQi.jpg" alt="This is a screenshot from the JSFiddle code"></p>
    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. 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