Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>So heres an example that works like you want, i believe <a href="http://jsfiddle.net/RshTE/" rel="nofollow">http://jsfiddle.net/RshTE/</a></p> <p>Only thing is that i believe that IE6 wont like this.. I dont like to support ie6 anyways.</p> <p><a href="http://jsfiddle.net/RshTE/" rel="nofollow">http://jsfiddle.net/RshTE/</a> there are couple other downsides to this code that are shown in the example.</p> <p>But, uh... Enjoy? :D</p> <p>I've never really had to do something like this so there might be a better way and i just dont know that.</p> <p>CSS:</p> <pre><code>#wrap { width: 600px; margin: 0px auto; border: 1px solid #e1e1e1; } #sidebar { float: right; width: 150px; border: 1px solid #e1e1e1; height: 220px; } .content-box { overflow: auto; /* Important part */ border: 1px solid #e1e1e1; } </code></pre> <p>HTML:</p> <pre><code>&lt;div id="wrap"&gt; &lt;div id="content"&gt; &lt;div id="sidebar"&gt;Sidebar&lt;/div&gt; &lt;div class="content-box"&gt;Content box 1&lt;/div&gt; &lt;div class="content-box"&gt;Content box 2&lt;/div&gt; &lt;div class="content-box"&gt;Content box 3&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <hr> <p><strong>Edit:</strong> <a href="http://jsfiddle.net/RshTE/8/" rel="nofollow">http://jsfiddle.net/RshTE/8/</a> &amp; <a href="http://jsfiddle.net/RshTE/9/" rel="nofollow">http://jsfiddle.net/RshTE/9/</a> </p> <p>( Information about the <code>display: inline;</code> hack <a href="http://foohack.com/2007/11/cross-browser-support-for-inline-block-styling/" rel="nofollow">http://foohack.com/2007/11/cross-browser-support-for-inline-block-styling/</a> )</p>
 

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