title: Height in percentage isn't working, works in pixels
body: <p>For some reason my <code>div</code>s aren't gaining height when I apply <code>.section {height: 100%;}</code>, but when I give it a <code>height</code> attribute in pixels it works. The idea is that I want the <code>div</code>s to use the browsers window, so the <code>div</code> would cover entire section of the browser no matter what the resolution of the display. </p>
  
  <p><a href="http://jsfiddle.net/marrto/npe2y/" rel="nofollow">http://jsfiddle.net/marrto/npe2y/</a></p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;title&gt; 10 &lt;/title&gt;
  &lt;!-- Slidebars CSS --&gt;
  
  &lt;link href="css/mystyle.css" rel="stylesheet" text="text/css" &gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;!-- MAIN AREA --&gt;
  
  
  &lt;!-- WRAPPER - WRAPPS NAVIGATION AND LOGO--&gt;
  &lt;div id="wrapper"&gt;
      &lt;div id="header"&gt; 
          &lt;div class="logo"&gt;
              &lt;a href="index.html"&gt; &lt;img src="logo.png" alt="Logo"&gt; &lt;/a&gt;
          &lt;/div&gt;
  
          &lt;div class="navBar"&gt;
          &lt;ul id="nav"&gt;
          &lt;li&gt;&lt;a href="#topbar"&gt;Homepage&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#about"&gt;About&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#photos"&gt;Photos&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#contact"&gt;Contact&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div style="clear: both;"&gt; &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;!-- WRAPPER END --&gt;
  
  
  
  
  
  &lt;div id="topbar" class="section"&gt;
  &lt;div class="content"&gt;
  Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div id="about" class="section"&gt;
  &lt;div class="content"&gt;
  Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div id="photos" class="section"&gt;
  &lt;div class="content"&gt;
  Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div id="contact" class="section"&gt;
  &lt;div class="content"&gt;
  Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  &lt;/div&gt;
  &lt;/div&gt;
  
  
  &lt;!-- WRAPPER - WRAPPS NAVIGATION AND LOGO--&gt;
  &lt;div id="container"&gt;
      &lt;div id="footer"&gt; 
          &lt;div class="legal"&gt;
              text
          &lt;/div&gt;
  
          &lt;div class="site"&gt;
              Text
          &lt;/div&gt;
          &lt;div style="clear: both;"&gt; &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;!-- WRAPPER END --&gt;
  
  
  
      &lt;/body&gt;
  &lt;/html&gt;
  
  
  body { /* general font size, family and color */
      font-family: Arial, Helvetica, sans-serif;
      font-size: .9em;
      color: #343434;
      margin: 0;
      padding: 0;
  }
  
  
  .sb-toggle-left {
      display: none;
  }
  
  #wrapper { /* wrapps logo and the navigation links */
      background-color: #ffffff;
      height: 60px;
      width: 100%;
      top: 0;
      left: 0px;
      position: relative;
      z-index: 99;
      -moz-box-shadow:    0 0 3px 0 #ccc;
      -webkit-box-shadow: 0 0 3px 0 #ccc;
      box-shadow:         0 0 3px 0 #ccc; 
  }
  
  .section:nth-child(odd) {
      background-color: #b1d994;
  }
  .section:nth-child(even) {
      background-color: #5bc473;
  }
  
  .section {
      height: 100%;
      padding: 5%;
  }
  
  
  .content {
      width: 60%;
      margin-right: auto;
      margin-left: auto;
      text-align: justify;
  }
  
  /*
  #topbar {
      background-image: url('banner.jpg');
  }
  */
  
  #header {
      width: 60%;
      position:relative;
      margin-left: auto;
      margin-right: auto;
      min-width: 600px;
  }
  
  .logo {
      float: left;
      padding-top: .9em;  
  }
  
  .navBar {
      float: right;
      padding-top: 1.3em;
  }
  
  .navBar ul {
      list-style-type:none;
      margin:0;
      padding:0;
      overflow:hidden;
  }
  
  .navBar li {
  float:left;
  }
  
  .navBar a:link, .navBar a:visited {
      display: block;
      color:#4a4949;
      padding:4px;
      text-decoration:none;
      text-transform:uppercase;
      font-size: 0.8em;
  }
  
  
  .navBar a:hover {
      color:#ababab;
  } 
  
  #container { /* wrapps logo and the navigation links */
      background-color: #ffffff;
      height: 60px;
      width: 100%;
      top: 0;
      left: 0px;
      -moz-box-shadow:    0 0 3px 0 #ccc;
      -webkit-box-shadow: 0 0 3px 0 #ccc;
      box-shadow:         0 0 3px 0 #ccc; 
  }
  
  
  #footer {
      width: 60%;
      position:relative;
      margin-left: auto;
      margin-right: auto;
  }
  
  .legal {
      float: left;
      padding-top: 1.3em; 
  }
  
  .site {
      float: right;
      padding-top: 1.3em;
  }
  </code></pre>