title: Css div fill parent height
body: <p>I have the following HTML</p>
  
  <pre><code>&lt;div class="container"&gt;
    &lt;div class="item-1"&gt;
      item 1
    &lt;div&gt;
    &lt;div class="item-2"&gt;
      item 2
    &lt;div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>wherefore I created the following codepen example <a href="http://codepen.io/anon/pen/EWXpVV" rel="noreferrer">http://codepen.io/anon/pen/EWXpVV</a></p>
  
  <p>At the top of the parent div I want to place the blue div. The remaining height of the parent div should be filled with the second child div (red one).</p>
  
  <p>How can I achieve that the height of the red div completely covers the area of ​​the parent div?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="true" data-console="true" data-babel="false">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
    background-color: green;
    height: 200px;
  }
  
  .item-1 {
    background-color: blue;
  }
  
  .item-2 {
    background-color: red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="item-1"&gt;
      item 1
    &lt;div&gt;
    &lt;div class="item-2"&gt;
      item 2
    &lt;div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>