title: How can I make a CSS grid fill the height of the parent element?
body: <p>I wish to make a button, using CSS grid, with the elements filling the full height of the container:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>button {
    display: grid;
    height: 50px;
    grid-auto-flow: column;
    align-items: center;
  }
  
  .one {
    color: white;
    background-color: purple;
    border-right: 1px solid red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button&gt;
    &lt;span class="one"&gt;one&lt;/span&gt;
    &lt;span class="two"&gt;two&lt;/span&gt;
  &lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>As one can see from the inspector, this is a single row, that doesn't fill the height of the container:</p>
  <p><img src="https://i.stack.imgur.com/Z0CBP.png" alt="enter image description here" /></p>
  <p>I'd like the grid to fill the container, so the whole left of the container is purple.</p>