title: How do you make elements expand to fill the cross axis in flexbox?
body: <p>I'm trying to have elements fill up the cross axis in flexbox. In the example below I have a fixed-height item taking up a whole row, and two items taking up the next.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html {
    height: 100%;
  }
  body {
    min-height: 100%;
    display: flex;
    flex-flow: row wrap;
    margin: 0;
    align-items: stretch;
    align-content: flex-start;
  }
  div {
    border: 3px solid red;
    flex-grow: 1;
  }
  div#a {
    flex-basis: 100%;
    height: 100px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;div id="a" style="background-color:green"&gt;AAA&lt;/div&gt;
    &lt;div id="b" style="background-color:blue"&gt;BBB&lt;/div&gt;
    &lt;div id="c" style="background-color:yellow"&gt;CCC&lt;/div&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>If you change the <code>align-content</code> on <code>body</code> to <code>stretch</code> you can see the effects of the body min-height - the second row will stick to the bottom. However, there is now a gap between the rows.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html {
    height: 100%;
  }
  body {
    min-height: 100%;
    display: flex;
    flex-flow: row wrap;
    margin: 0;
    align-items: stretch;
    align-content: stretch;
  }
  div {
    border: 3px solid red;
    flex-grow: 1;
  }
  div#a {
    flex-basis: 100%;
    height: 100px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;div id="a" style="background-color:green"&gt;AAA&lt;/div&gt;
    &lt;div id="b" style="background-color:blue"&gt;BBB&lt;/div&gt;
    &lt;div id="c" style="background-color:yellow"&gt;CCC&lt;/div&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to remove this gap so that blocks B and C take up all remaining space.</p>