Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting column to expand to the same height in a 3 column CSS layout?
    text
    copied!<p>Does anyone know what CSS can be applied to these elements to make the side bars expand to the height of the middle div?</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;This is my page&lt;/title&gt; &lt;style type="text/css"&gt; body { background-color:#aaaaaa; } #container { width:900px; margin-left:auto; margin-right:auto; } #leftborder { float:left; width:10px; background-color:#ff0000; } #rightborder { margin:0; padding:0; float:right; width:10px; background-color:#ff0000; } #middlecontainer{ margin:0 10px; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="container"&gt; &lt;div id="leftborder"&gt; a &lt;/div&gt; &lt;div id="rightborder"&gt; a &lt;/div&gt; &lt;div id="middlecontainer"&gt; This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content This is is content &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

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