title: display flex breaking mulitline text box
body: <p>I had been working on this for some days and reading information about display flex, but I'm still having an issue that I can't fix. I have 3 boxes and they have % width and some px separating each others, something like this</p>
  
  <pre><code>[[first box] [second box] [third box]]
  </code></pre>
  
  <p>so, to do this I used the nth-of-type(3n+2) in order to get all the middle elements and addind the px separation to both sides</p>
  
  <p>each box has two divs, an image(to the left) and a text, but, when the text has at least two lines, the box get missaligned</p>
  
  <pre><code>[[first box] [second box] 
                            [third box]]
  </code></pre>
  
  <p>and that's not good. So, playing with the styles if I remove the display:flex and the box were aligned, but the text now is not vertical aligned to the middle -.-</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>.general-cont {
    width: 100%;
    text-align: center;
  }
  
  .each-cont {
    width: 32.5%;
    display: inline-block;
    margin-top: 6px;
  }
  
  .each-cont:nth-of-type(3n+2) {
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .img-cont {
    float: left;
    height: 48px;
    display: flex;
    align-items: center;
  }
  
  .text-cont {
    height: 48px;
    overflow: hidden;
    align-items: center;
    text-align: left;
    display: flex;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="general-cont"&gt;
    &lt;div class="each-cont"&gt;
      &lt;a&gt;
        &lt;div class="img-cont"&gt;
          123
        &lt;/div&gt;
        &lt;div class="text-cont"&gt;
          456
        &lt;/div&gt;
      &lt;/a&gt;
    &lt;/div&gt;
  
    &lt;div class="each-cont"&gt;
      &lt;a&gt;
        &lt;div class="img-cont"&gt;
          ABC
        &lt;/div&gt;
        &lt;div class="text-cont"&gt;
          DEF
        &lt;/div&gt;
      &lt;/a&gt;
    &lt;/div&gt;
  
    &lt;div class="each-cont"&gt;
      &lt;a&gt;
        &lt;div class="img-cont"&gt;
          QWE
        &lt;/div&gt;
        &lt;div class="text-cont"&gt;
          ASD
        &lt;/div&gt;
      &lt;/a&gt;
    &lt;/div&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>