title: CSS - Span divs the entire height of the page
body: <p>I have coded my divs so that they (almost) appear perfectly. The correct divs are above/below each other and it spans the entire width of the page. What I am finding is that it is not spanning the entire height of the page. Any advise would be greatly appreciated! Also, I have a horizontal scroll bar that I would love to go away. :)</p>
  
  <p><strong>CSS:</strong></p>
  
  <pre><code>body {
    color: #333;
    font-size: 11px;
      font-family: "Myriad Pro", Arial, Helvetica, Arial, 'DejaVu Sans', 'Liberation Sans', Freesans, sans-serif;
    position: relative;
  }
  
  .container_16 {
    margin-left: auto;
    margin-right: auto;
    width: 960px;
    margin-top:0px;
    padding-top:0px;
        min-height:800px; 
      background-image:url(../images/Content_bkg.gif);
          box-shadow: 0px 0px 15px rgb(0,0,0);
      -webkit-box-shadow: 0px 0px 15px rgb(0,0,0);
  }
  .container_24 {
      background-image: url(../images/headerFooter_bkg.gif);
      height: 60px;
      margin: 0px;
      padding: 0px;
      border: 1px solid rgb(71, 89, 32);
      box-shadow: 0px 0px 15px rgb(0,0,0);
      -webkit-box-shadow: 0px 0px 15px rgb(0,0,0);
      position:relative;
      width:100%;
  }
  </code></pre>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;body&gt;
         &lt;div class="container_24"&gt;
              &lt;div class="grid_16"&gt;
                  &lt;input type="text" value="Username" /&gt;&lt;input type="text" value="Password" /&gt;&lt;input type="button" value="Submit" /&gt;&lt;span class="mainLink"&gt;Register&lt;/span&gt;
              &lt;/div&gt;
         &lt;/div&gt;
         &lt;div class="container_16"&gt;
              &lt;form id="form1" runat="server"&gt;
                  &lt;asp:ContentPlaceHolder ID="Body" runat="server"&gt;
  
                  &lt;/asp:ContentPlaceHolder&gt;
              &lt;/form&gt;
         &lt;/div&gt;
         &lt;div class="container_24"&gt;&lt;/div&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p>UPDATE:
  This is what my code looks like with the wrapper concept provided below.</p>
  
  <pre><code>.wrapper{
      height:100%;
  }
  
  .container_16 {
    margin-left: auto;
    margin-right: auto;
    width: 960px;
    margin-top:0px;
    padding-top:0px;
      background-image:url(../images/Content_bkg.gif);
          box-shadow: 0px 0px 15px rgb(0,0,0);
      -webkit-box-shadow: 0px 0px 15px rgb(0,0,0);
  }
  .container_24 {
      background-image: url(../images/headerFooter_bkg.gif);
      height: 60px;
      margin: 0px;
      padding: 0px;
      border: 1px solid rgb(71, 89, 32);
      box-shadow: 0px 0px 15px rgb(0,0,0);
      -webkit-box-shadow: 0px 0px 15px rgb(0,0,0);
      position:relative;
      width:100%;
  }
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;body&gt;
      &lt;div class="wrapper"&gt;
         &lt;div class="container_24"&gt;
              &lt;div class="grid_16"&gt;
                  &lt;input type="text" value="Username" /&gt;&lt;input type="text" value="Password" /&gt;&lt;input type="button" value="Submit" /&gt;&lt;span class="mainLink"&gt;Register&lt;/span&gt;
              &lt;/div&gt;
         &lt;/div&gt;
         &lt;div class="container_16"&gt;
              &lt;form id="form1" runat="server"&gt;
                  &lt;asp:ContentPlaceHolder ID="Body" runat="server"&gt;
  
                  &lt;/asp:ContentPlaceHolder&gt;
              &lt;/form&gt;
         &lt;/div&gt;
         &lt;div class="container_24"&gt;&lt;/div&gt;
          &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/XfTpc.png" alt="enter image description here"></p>