title: Filling height with flexbox and bootstrap cards
body: <p>I have a page using Bootstrap containers and cards. I am trying to get <code>.card-body</code> to fill the full height of the screen but the height ends after the end of the content. Here is a fiddle demonstrating the problem. <a href="https://jsfiddle.net/kyz9xua8/" rel="nofollow noreferrer">Fiddle</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.page-container {
    min-height: 100vh;
  }
  
  .main-content {
    min-height: calc(100vh - 0px);
    -webkit-box-flex: 1;
    flex-grow: 1;
  }
  
  .container {
    width: 100%;
  }
  
  .card {
    display: flex;
    flex-direction: column;
  }
  
  .card-body {
    -webkit-box-flex: 1;
    flex: 1 1 auto;
    background: #ccc;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="page-container"&gt;
    &lt;div class="main-content"&gt;
      &lt;div class="container form-container"&gt;
        &lt;div class="card"&gt;
          &lt;div class="card-body"&gt;
            This should be full height!
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>