title: How to get a div to resize its height to fit container?
body: <p>How can I get the nav div to have expand down or have the height the same as its parent div?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>*   {
      border:0; 
      padding:0; 
      margin:0;
  }
  #container {
      margin-left: auto;
      margin-right: auto;
      border: 1px solid black;
      overflow: auto;
      width: 800px;   
  }
  #nav {
      width: 19%;
      border: 1px solid green;
      float:left; 
  }
  #content {
      width: 79%;
      border: 1px solid red;
      float:right;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="container"&gt;
      &lt;div id="nav"&gt;
          &lt;ul&gt;
              &lt;li&gt;Menu&lt;/li&gt;
              &lt;li&gt;Menu&lt;/li&gt;
              &lt;li&gt;Menu&lt;/li&gt;
              &lt;li&gt;Menu&lt;/li&gt;
              &lt;li&gt;Menu&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
      &lt;div id="content"&gt;
          &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam fermentum consequat ligula vitae posuere. Mauris dolor quam, consequat vel condimentum eget, aliquet sit amet sem. Nulla in lectus ac felis ultrices dignissim quis ac orci. Nam non tellus eget metus sollicitudin venenatis sit amet at dui. Quisque malesuada feugiat tellus, at semper eros mollis sed. In luctus tellus in magna condimentum sollicitudin. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur vel dui est. Aliquam vitae condimentum dui. Praesent vel mi at odio blandit pellentesque. Proin felis massa, vestibulum a hendrerit ut, imperdiet in nulla. Sed aliquam, dolor id congue porttitor, mauris turpis congue felis, vel luctus ligula libero in arcu. Pellentesque egestas blandit turpis ac aliquet. Sed sit amet orci non turpis feugiat euismod. In elementum tristique tortor ac semper.&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>