title: CSS - Three divs next to each other and 100% height
body: <p>Im working on a layout for a website and I'm trying to set up my css rules for the layout in the following image:
  <img src="https://i.stack.imgur.com/QpioV.png" alt="layout"></p>
  
  <p>I want left &amp; right divs to extend to the height of content div, I'm not very familiar with the clear attribute and how to use it. Here's what I've done so far:</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;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7"&gt;
  &lt;title&gt;Untitled Document&lt;/title&gt;
  &lt;style type="text/css"&gt;
  &lt;!--
  
  html, body
  {
      height: 100%;
      min-height: 100%;
      margin: 0;
      padding: 0;
  }
  #header {
      background: url(images/header.png) no-repeat;
      margin-top: 0px;
      margin-right: auto;
      margin-bottom: 0px;
      margin-left: auto;
      clear: both;
      padding: 15px;
      width: 1013px;
      height: 46px;
  }
  #wrapper {
      clear: both;
      width: 1043px;
      margin-top: 10px;
      margin-right: auto;
      margin-bottom: 10px;
      margin-left: auto;
      height: 100%;
      min-height: 100%;
  }
  #content {
      background: #F00 url(images/fondo%20light.jpg) repeat;
      margin-top: 0px;
      margin-right: auto;
      margin-bottom: 0px;
      margin-left: auto;
      color: #333;
      z-index: 1;
      float: left;
      width: 985px;
      clear: none;
      padding: 0px;
      height: 150px;
  }
  #lines-left {
      background: url(images/lines-left.png) no-repeat;
      float: left;
      width: 17px;
      height: 100%;
      margin-left: 13px;
  }
  #lines-right {
      background: url(images/lines-right.png) no-repeat;
      float: right;
      width: 17px;
      height: 100%;
      padding: 0px;
      margin-top: 0px;
      margin-right: 11px;
      margin-bottom: 0px;
      margin-left: 0px;
  }
  body {
      background: url(images/dark-pattern.jpg);
      font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
      font-size: 11px;
      color: #FFF;
      margin: 0px;
  }
  #footer {
      background: url(images/footer.png) no-repeat;
      height: 140px;
      margin-top: 0px;
      margin-right: auto;
      margin-bottom: 0px;
      margin-left: auto;
      clear: both;
      padding: 15px;
      width: 1013px;
  }
  --&gt;
  &lt;/style&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;div id="wrapper"&gt;
  
  &lt;div id="header"&gt;Content for  id "header" Goes Here&lt;/div&gt;
  &lt;div id="lines-left"&gt;&amp;nbsp;&lt;/div&gt;
  &lt;div id="content"&gt;Content for  id "content" Goes Here&lt;/div&gt;
  &lt;div id="lines-right"&gt;&amp;nbsp;&lt;/div&gt;
  
  &lt;div id="footer"&gt;Content for  id "footer" Goes Here&lt;/div&gt;
  
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>