<div class="wrapper">
  <div class="card"></div>
  <div class="card"></div>
  <div class="card"></div>
  <div class="card"></div>
  <div class="card"></div>
  <div class="card"></div>
  <div class="card"></div>
  <div class="card"></div>
  <div class="card"></div>
  <div class="card"></div>
</div>
.wrapper {
  display: flex;
  padding-top: 50px;
  flex-wrap: wrap;
}

.card {
  margin: 10px 15px;
  min-height: 100px;
  background: #363636;
  flex-grow: 1;
  flex-basis: 100px;
  transition: all 0.3s;
  
}

.card:hover {
  transform: translateY(-5px);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.