title: min-height:100% doesn't work on my container?
body: <p>Dear fellow readers on Stack Overflow, I am currently working in CSS and I ran into trouble with giving my container a minimal height of 100% to get my footer at the bottom of the page, and not any higher.</p>
  
  <pre><code>*{
      margin:0;
      padding:0;
  }
  html,body{
      margin:0;
      padding;0;
      height:100%;
  }
  body{
      font-family:Verdana, Helvetica, Arial, sans-serif;
      font-size:12px;
      color:#EFEFEF;
      background:url(../img/bg.jpg);
  }
  #container{
      width:1150px;
      opacity:0.7;
      background-color:black;
      min-height:100%;
      margin:auto;
  }
  
  /* Main Navigation */
  
  #main-nav { height: 50px; }
  #main-nav dl { margin: 0; padding: 0; }
  
  /* IE5 Mac Hack \*/ 
  #main-nav { padding-left: 11px; } 
  /*/ 
  #main-nav { padding-left: 11px; overflow: hidden; } 
  /* End Hack */
  
  #main-nav dt { float: left; }
  
  #main-nav dt a {
      display: block;
      height: 0px !important;
      height /**/:50px; /* IE 5/Win hack */ 
      padding: 50px 0 0 0;
      overflow: hidden;
      background-repeat: no-repeat;
  }
  
  #main-nav dt a:hover {
      background-position: 0 -50px;
  }
  
  #main-nav dt#about,
  #main-nav dt#about a { width: 71px; background-image: url(../img/nav/about.gif); }
  
  #main-nav dt#services,
  #main-nav dt#services a { width: 84px; background-image: url(../img/nav/services.gif); }
  
  #main-nav dt#portfolio,
  #main-nav dt#portfolio a { width: 95px; background-image: url(../img/nav/portfolio.gif); }
  
  #main-nav dt#contact,
  #main-nav dt#contact a { width: 106px; background-image: url(../img/nav/contact.gif); }
  
  body.about dt#about,
  body.about dt#about a,
  body.about dt#about a:hover,
  body.services dt#services,
  body.services dt#services a,
  body.services dt#services a:hover,
  body.portfolio dt#portfolio,
  body.portfolio dt#portfolio a,
  body.portfolio dt#portfolio a:hover,
  body.contact dt#contact,
  body.contact dt#contact a,
  body.contact dt#contact a:hover {
      background-position: 0 -100px;
  }
  
  body.about #header {
      height: 150px;
      background: #db6d16
              url(../img/headers/about.jpg);
  }
  
  #header{
      height:150px;
      background:#DB6D16 url(../img/headers/about.jpg);
  }
  #header h1{
      margin:0;
      padding:0;
      float:right;
      margin-top:57px;
      padding-right:31px;
  }
  #sidebar{
      float:right;
      width:280px;
      line-height:18px;
  }
  #content{
      margin-right:280px;
      line-height:18px;
  }
  #footer{
      height:100px;
      clear:both;
      font-family:Tahoma, Arial, Helvetica, sans-serif;
      font-size:10px;
      color:#C9C9C9;
      border-top:1px solid #EFEFEF;
      padding:13px 25px;
      line-height:18px;
      margin-top:-100px;
      position:relative;
  }
  #footer a{
      color:#C9C9C9;
      text-decoration:none;
  }
  #footer a:hover{
      color:#DB6D16;
  }
  #footer #altnav{
      width:350px;
      float:right;
      text-align:right;
  }
  #main{
      overflow:auto;
      padding-bottom:100px;
  }
  .hidden{
      display:none;
  }
  #content h2{
      margin:0;
      padding:0;
      padding-bottom:15px;
  }
  #content p{
      margin:0;
      padding:0;
      padding-bottom:15px;
  }
  #sidebar .padding, #content .padding{
      padding:25px;
  }
  </code></pre>
  
  <p>This is the CSS I use, the effect is: <a href="http://picpaste.com/e85f01c1b470e03c36988c1487917add.png" rel="nofollow">http://picpaste.com/e85f01c1b470e03c36988c1487917add.png</a>
  So, if you look at the pic, I want to have the footer (everything below the white line) to be at the very bottom, and everything above the footer (content,sidebar,header,menu) to be connected to the top of the footer.</p>
  
  <p>If more information is needed, please do ask!</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-type" content="text/html; charset=UTF-8" /&gt;
          &lt;title&gt;Johann Behrens :: Portfolio&lt;/title&gt;
          &lt;meta http-equiv="Content-Language" content="en-us" /&gt;
          &lt;meta http-equiv="imagetoolbar" content="no" /&gt;
          &lt;meta name="MSSmartTagsPreventParsing" content="true" /&gt;
          &lt;meta name="description" content="Description" /&gt;
          &lt;meta name="keywords" content="Keywords" /&gt;
          &lt;meta name="author" content="Johann Behrens" /&gt;
          &lt;link rel="stylesheet" type="text/css" href="css/basis.css" /&gt;
      &lt;/head&gt;
      &lt;body class="about"&gt;
          &lt;div id="container"&gt;
              &lt;div id="main" class="clearfix"&gt;
                  &lt;div id="main-nav"&gt;
                      &lt;dl&gt;
                          &lt;dt id="about"&gt;
                              &lt;a href="#"&gt;About&lt;/a&gt;
                          &lt;/dt&gt;
                          &lt;dt id="services"&gt;
                              &lt;a href="#"&gt;Services&lt;/a&gt;
                          &lt;/dt&gt;
                          &lt;dt id="portfolio"&gt;
                              &lt;a href="#"&gt;Portfolio&lt;/a&gt;
                          &lt;/dt&gt;
                          &lt;dt id="contact"&gt;
                              &lt;a href="#"&gt;Contact&lt;/a&gt;
                          &lt;/dt&gt;
                      &lt;/dl&gt;
                  &lt;/div&gt;
                  &lt;div id="header"&gt;
                      &lt;h1&gt;&lt;img src="img/general/logo_enlighten.gif" width="236" height="36" alt="Enlighten Designs" border="0" /&gt;&lt;/h1&gt;
                  &lt;/div&gt;
                  &lt;div id="sidebar"&gt;
                      &lt;div class="padding"&gt;
                          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam gravida enim ut risus.
                          Praesent sapien purus, ultrices a, varius ac, suscipit ut, enim. Maecenas in lectus.
                          Donec in sapien in nibh rutrum gravida. Sed ut mauris. Fusce malesuada enim vitae lacus
                          euismod vulputate. Nullam rhoncus mauris ac metus. Maecenas vulputate aliquam odio.
                          Duis scelerisque justo a pede. Nam augue lorem, semper at, porta eget, placerat eget,
                          purus. Suspendisse mattis nunc vestibulum ligula. In hac habitasse platea dictumst.
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div id="content"&gt;
                      &lt;div class="padding"&gt;
                          &lt;h2&gt;&lt;img src="img/headings/about.gif" width="54" height="14" alt="About" /&gt;&lt;/h2&gt;
                          &lt;p&gt;
                              &lt;strong&gt;Enlighten Designs&lt;/strong&gt; is an Internet solutions provider that specialises in front and back end development. To view some of the web sites we have created view our portfolio.
                          &lt;/p&gt;
                          &lt;p&gt;
                              We are currently undergoing a 'face lift', so if you have any questions or would like more information about the services we provide please feel free to contact us.
                          &lt;/p&gt;
                          &lt;h2&gt;&lt;img src="img/headings/contact.gif" width="98" height="14" alt="Contact Us" /&gt;&lt;/h2&gt;
                          &lt;p&gt;
                              Phone:   (07) 853 6060
                              &lt;br /&gt;
                              Fax:     (07) 853 6060
                              &lt;br /&gt;
                              Email: &lt;a href="mailto:info@enlighten.co.nz"&gt;info@enlighten.co.nz&lt;/a&gt;
                              &lt;br /&gt;
                              P.O Box: 14159, Hamilton, New Zealand
                          &lt;/p&gt;
                          &lt;p&gt;
                              &lt;a href="#"&gt;More contact information…&lt;/a&gt;
                          &lt;/p&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div id="footer"&gt;
                  &lt;div id="altnav"&gt;
                      &lt;a href="#"&gt;About&lt;/a&gt; - &lt;a href="#"&gt;Services&lt;/a&gt; - &lt;a href="#"&gt;Portfolio&lt;/a&gt; - &lt;a href="#"&gt;Contact Us&lt;/a&gt; - &lt;a href="#"&gt;Terms of Trade&lt;/a&gt;
                  &lt;/div&gt;
                  Copyright &amp;copy; Johann Behrens
                  &lt;br /&gt;
                  Powered by &lt;a href="http://www.mijndomein.nl"&gt;Mijn Domein&lt;/a&gt; and designed by &lt;a href="http://www.jbehrens.nl"&gt;Johann Behrens&lt;/a&gt;.
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>