title: Equal height rows in a flex container
body: <p>As you can see, the <code>list-items</code> in the first <code>row</code> have same <code>height</code>. But items in the second <code>row</code> have different <code>heights</code>. I want all items to have a uniform <code>height</code>.</p>
  
  <p>Is there any way to achieve this without giving <strong>fixed-height</strong> and only using <strong>flexbox</strong>?</p>
  
  <p><a href="https://i.stack.imgur.com/KVxvj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KVxvj.png" alt="enter image description here"></a></p>
  
  <p>Here is my <code>code</code> </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>.list {
    display: flex;
    flex-wrap: wrap;
    max-width: 500px;
  }
  .list-item {
    background-color: #ccc;
    display: flex;
    padding: 0.5em;
    width: 25%;
    margin-right: 1%;
    margin-bottom: 20px;
  }
  .list-content {
    width: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="list"&gt;
    &lt;li class="list-item"&gt;
      &lt;div class="list-content"&gt;
        &lt;h2&gt;box 1&lt;/h2&gt;
        &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit.&lt;/p&gt;
      &lt;/div&gt;
    &lt;/li&gt;
    &lt;li class="list-item"&gt;
      &lt;div class="list-content"&gt;
        &lt;h3&gt;box 2&lt;/h3&gt;
        &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit.&lt;/p&gt;
      &lt;/div&gt;
    &lt;/li&gt;
  
    &lt;li class="list-item"&gt;
      &lt;div class="list-content"&gt;
        &lt;h3&gt;box 2&lt;/h3&gt;
        &lt;p&gt;Lorem ipsum dolor&lt;/p&gt;
      &lt;/div&gt;
    &lt;/li&gt;
  
    &lt;li class="list-item"&gt;
      &lt;div class="list-content"&gt;
        &lt;h3&gt;box 2&lt;/h3&gt;
        &lt;p&gt;Lorem ipsum dolor&lt;/p&gt;
      &lt;/div&gt;
    &lt;/li&gt;
    &lt;li class="list-item"&gt;
      &lt;div class="list-content"&gt;
        &lt;h1&gt;h1&lt;/h1&gt;
      &lt;/div&gt;
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>