title: Equal height Bootstrap cards in flexbox
body: <p>I am using flexbox for my cards group. The problem is that I want the flex item <code>div</code> with <code>.card</code> class should remain same height if text inside the <code>.card-block.p</code> increases in one card the rest of the cards height also increases with the card.</p>
  
  <p>Here is my fiddle: <a href="https://jsfiddle.net/a2d758jg/" rel="nofollow noreferrer">https://jsfiddle.net/a2d758jg/</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>.card-group {
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
    max-height: 475px;
    background-color: lightgrey;
  }
  
  .card img {
    width: 100%;
  }
  
  .card {
    background-color: cornflowerblue;
    width: 30%;
    margin: 0px;
    flex: 2;
    border: 1px solid lightgrey;
  }
  
  .card-block {
    padding: 10px;
    background-color: #fff;
  }
  
  .card-title {
    font-size: 18px;
    color: grey;
    font-family: verdana, sans;
  }
  
  .card-footer {
    padding: 15px;
    border-top: 1px solid lightgrey;
    background-color: lightgrey;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="card-group"&gt;
      &lt;div class="card"&gt;
        &lt;img class="card-img-top" src="https://static.pexels.com/photos/132987/pexels-photo-132987.jpeg" alt="Card image cap"&gt;
        &lt;div class="card-block"&gt;
          &lt;h4 class="card-title"&gt;Card title&lt;/h4&gt;
          &lt;p class="card-text"&gt;This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.&lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="card-footer"&gt;
          &lt;small class="text-muted"&gt;Last updated 3 mins ago&lt;/small&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="card"&gt;
        &lt;img class="card-img-top" src="https://static.pexels.com/photos/132987/pexels-photo-132987.jpeg" alt="Card image cap"&gt;
        &lt;div class="card-block"&gt;
          &lt;h4 class="card-title"&gt;Card title&lt;/h4&gt;
          &lt;p class="card-text"&gt;This card hasThis is a wider card with supporting text below as a natural lead-in to additional content. supporting text below as a natural lead-in to additional content.This is a wider card with supporting text below as a natural lead-in to additional
            content.&lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="card-footer"&gt;
          &lt;small class="text-muted"&gt;Last updated 3 mins ago&lt;/small&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="card"&gt;
        &lt;img class="card-img-top" src="https://static.pexels.com/photos/132987/pexels-photo-132987.jpeg" alt="Card image cap"&gt;
        &lt;div class="card-block"&gt;
          &lt;h4 class="card-title"&gt;Card title&lt;/h4&gt;
          &lt;p class="card-text"&gt;This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.&lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="card-footer"&gt;
          &lt;small class="text-muted"&gt;Last updated 3 mins ago&lt;/small&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>