<p class="note">Ця властивість може не підтримуватися Вашим браузером!</p>

<div class="box">
  <div class="item">30px</div>
  <div class="item">40px</div>
  <div class="item">60px</div>
  <div class="item">30px</div>
  <div class="item">40px</div>
  <div class="item">60px</div>
</div>
.box {
  display: grid;
  grid-auto-rows: 30px 40px 60px;
  grid-gap: 5px;
}

.box .item {
  background-color: tomato;
  color: white;
  font-size: 1em;
  padding: 10px;
  text-align: center;
  font-family: monospace;
}

.note {
  text-align: center;
  margin-bottom: 25px;
  font-style: italic;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.