JSFiddle - React, Tailwind, and code Playground

by otunik

HTML

<div class="container">
  <div class="column">
    <div class="card">
      <div class="image">
        <img src="https://placeimg.com/200/100" alt="image of a kitten" />
      </div>
      <article>
        <h2>One</h2>
        <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s</p>
      </article>
    </div>
  </div>
 
  <div class="column">
    <div class="card">
      <div class="image">
        <img src="https://placeimg.com/200/100" alt="image of a kitten" />
      </div>
      <article>
        <h2>Two</h2>
        <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s</p>
      </article>
    </div>
  </div>
  
  <div class="column">
    <div class="card">
      <div class="image">
        <img src="https://placeimg.com/200/100" alt="image of a kitten" />
      </div>
      <article>
        <h2>Three</h2>
        <p>Some text goes here.</p>
      </article>
    </div>
  </div>
  
   <div class="column">
    <div class="card">
      <div class="image">
        <img src="https://placeimg.com/200/100" alt="image of a kitten" />
      </div>
      <article>
        <h2>Three</h2>
        <p>Some text goes here.</p>
      </article>
    </div>
  </div>
  
   <div class="column">
    <div class="card">
      <div class="image">
        <img src="https://placeimg.com/200/100" alt="image of a kitten" />
      </div>
      <article>
        <h2>Four</h2>
        <p>Some text goes here.</p>
      </article>
    </div>
  </div>
</div>

CSS

.container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 15px;
  background-color: #f9f9f9;
}

.column {
  flex: 1;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 10px;
  background: white;
  box-shadow: 5px 7px 15px 0px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 10px;
}

.card .image img {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
}

.card article {
  padding: 20px;
  flex:  1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.card article p {
  flex: 1
}

.card article .bottom {
  flex: 0;
}