title: How do you use Flexbox to fill all the empty space on the bottom of the page?
body: <p>This is my code :</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>.content {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .main {
    flex: 1;
    background-color: pink;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="content"&gt;
    &lt;div class="main"&gt;
      &lt;p&gt;This is a test!&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>However, this just creates a box that says &quot;This is a test!&quot; and underneath the pink box is just a bunch of empty white space. I want the flex box to completely fill everything under it with pink. How do I do this?</p>
  <p>I already tried align-items: stretch, and a billion other methods but I just can't seem to get it to work.</p>
  <p>I am still new to flexbox so please let me know if I may be missing some fundamental.</p>