title: Prevent buttons overlapping
body: <p>This is my div structure. I'm having difficulties achieving the following.</p>
  
  <p>How can I make all 3 buttons (Sub 1, Sub 2, Sub 3) visible and make the height of <code>DIV 1</code> to the height of its children buttons?</p>
  
  <p><a href="https://jsfiddle.net/t5au23ra/6/" rel="nofollow noreferrer"><strong>Fiddle</strong></a></p>
  
  <p>html:</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>.sub {
    position: relative;
    background-color: lime;
  }
  .itmHolder {
    position: relative;
  }
  .Buttons {
    display: inline-block;
    padding: 12px 8px;
  }
  .itmHolder:nth-child(2),
  .itmHolder:nth-child(3) {
    position: absolute;
    top: 0;
  }
  .og {
    margin-top: 15px;
    position: relative;
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="og"&gt;
    &lt;div class="itmHolder"&gt;
      &lt;div class="sub"&gt;DIV 1&lt;/div&gt;
      &lt;div class="sub"&gt;DIV 2&lt;/div&gt;
      &lt;div class="sub"&gt;
        &lt;button type="button" class="Buttons"&gt;Sub 1&lt;/button&gt;
        &lt;button type="button" class="Buttons"&gt;Sub 2&lt;/button&gt;
        &lt;button type="button" class="Buttons"&gt;Sub 3&lt;/button&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="itmHolder"&gt;
      &lt;button type="button" class="normalBtn"&gt;Button&lt;/button&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Expected output:</p>
  
  <p><img src="https://i.stack.imgur.com/Fd6z2.png" alt="enter image description here"></p>