title: How to make bootstrap column shrink to size of its contents
body: <p>I have a bootstrap column that I want to shrink to the height of its contents so another column can fill the space below it. Here is an image of what I am referring to:</p>
  <p><a href="https://i.stack.imgur.com/1tRF4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1tRF4.png" alt="enter image description here" /></a></p>
  <p>I would like for the first column – holding both col-1 boxes – to shrink to the height of its contents so the &quot;last&quot; box can fill the space.</p>
  <p><a href="https://codepen.io/MikeVMWork/pen/vYGqRqE?editors=1100" rel="nofollow noreferrer">Codepen link</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>.box {
    background-color: green;
    margin: 5px;
    padding: 25px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"&gt;
  &lt;div class="container"&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-12 col-md-8 col-lg-9"&gt;
        &lt;div class="box"&gt;col-1&lt;/div&gt;
        &lt;div class="box"&gt;col-1&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-12 col-md-4 col-lg-3"&gt;
        &lt;div class="box"&gt;col-2&lt;/div&gt;
        &lt;div class="box"&gt;col-2&lt;/div&gt;
        &lt;div class="box"&gt;col-2&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-12 col-md-8 col-lg-9"&gt;
        &lt;div class="box"&gt;last&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p><strong>Note:</strong> I originally just put the 3rd bootstrap column as a child of the first column, but had to move away from that because of how the tabbing on the page worked. I need it to tab from col-1 to col-2 to col-3, the last one.</p>