title: How to auto size rows to fit the container in css?
body: <p>Please see the code below. How can I divide the inner box into six equal height rows? I know that something like this can be acheived with columns in <code>display: grid</code> using <code>grid-template-columns:repeat(auto-fit,minmax(,)</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>* {
    border: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  .outerbox {
    display: flex;
    align-items: center;
    height: 100vh;
  }
  
  .innerbox {
    width: 40vh;
    height: 40vh;
    background-color: #ced9d5;
    margin: 0 auto;
  }
  
  .item div {
    width: 40vh;
    height: 10px;
    border: 1px solid black;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="outerbox"&gt;
    &lt;div class="innerbox"&gt;
      &lt;div class="item"&gt;
        &lt;div class="item01"&gt;&lt;/div&gt;
        &lt;div class="item02"&gt;&lt;/div&gt;
        &lt;div class="item03"&gt;&lt;/div&gt;
        &lt;div class="item04"&gt;&lt;/div&gt;
        &lt;div class="item05"&gt;&lt;/div&gt;
        &lt;div class="item06"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>