title: How to make CSS Grid items take up remaining space?
body: <p>I have a card built with CSS Grid layout. There might be an image to the left, some text to the right top and maybe a button or a link at the right bottom.</p>
  
  <p>In the code below, how can I make the green area take up as much space as possible and at the same time make the blue area take up as little space as possible?</p>
  
  <p>The green should push the blue area down as far as possible.</p>
  
  <p><a href="https://jsfiddle.net/9nxpvs5m/" rel="noreferrer">https://jsfiddle.net/9nxpvs5m/</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>.grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-areas:
      "one two"
      "one three"
  }
  
  .one {
    background: red;
    grid-area: one;
    padding: 50px 0;
  }
  
  .two {
    background: green;
    grid-area: two;
  }
  
  .three {
    background: blue;
    grid-area: three;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="grid"&gt;
    &lt;div class="one"&gt;
      One
    &lt;/div&gt;
    &lt;div class="two"&gt;
      Two
    &lt;/div&gt;
    &lt;div class="three"&gt;
      Three
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>