Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>there is no default way to handle this because the right and left container will fall out of the layout when floating them to the right or the left.</p> <p>The only way to handle this is to get the height of the left and the right container after the page has been loaded and set the minimum height of the center container to this value.</p> <p>An example to get this feature with jQuery is <a href="http://jsfiddle.net/Merec/Y7wx4/" rel="nofollow">in this jsFiddle</a></p> <p>HTML: </p> <pre><code>&lt;div class="left"&gt; &lt;div class="left-content"&gt; Left Column &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;more rows please...&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;more rows please... &lt;/div&gt; &lt;/div&gt; &lt;div class="right"&gt; &lt;div class="right-content"&gt; Right Column &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;more rows please... &lt;/div&gt; &lt;/div&gt; &lt;div class="center"&gt; &lt;div class="content"&gt; Center Column &lt;/div&gt; &lt;/div&gt; </code></pre> <p>CSS: </p> <pre><code>.left { float: left; width: 200px; background: red; } .right { float: right; width: 200px; background: green; } .center { margin: 0 200px; background: yellow; } </code></pre> <p>JS: </p> <pre><code>$(document).ready(function() { var max_height = 0; $('.left, .right, .center').each(function() { if($(this).outerHeight() &gt; max_height) max_height = $(this).outerHeight(); }).css('min-height', max_height); }); </code></pre> <p>There are also a lot of CSS tricks which are not valid or very complicated but they also work. Search for "equal height boxes".</p>
    singulars
    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.
    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