title: vertical align two divs next to each other to a same height?
body: <p>I want to align two divs (or something similar) next to each other to a same height.</p>
  
  <p>Also the wrapper containing the two divs should be vertically aligned in center.</p>
  
  <p>Tried something like this</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>.wrapper {
    background-color: #f1f1f1;
    height: 300px;
    width: 50%;
    margin: 0 auto;
    display: table;
  }
  
  .innerWrapper {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    width: fit-content;
  }
  
  .box {
    display: inline-block;
    padding: 25px 25px;
    opacity: 0.8;
    background-color: #32CD32;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="wrapper"&gt;
      &lt;div class="innerWrapper"&gt;
        &lt;div class="box"&gt;This is a box&lt;/div&gt;
        &lt;div class="box"&gt;
          &lt;div&gt;This is a box&lt;/div&gt;
          &lt;div&gt;This is a box&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want the height of the two divs to be same independent of the content inside each div.</p>