<div class="grid">
  <div class="item">01</div>
  <div class="item">02</div>
  <div class="item">03</div>
  <div class="item">04</div>
  <div class="item">05</div>
  <div class="item">06</div>
  <div class="item">07</div>
  <div class="item">08</div>
  <div class="item">09</div>
  <div class="item">10</div>
</div>
/* Create a grid of 5 columns, all evenly spaced, add a 10px gap; */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 1rem;
}

/* Just for visual representation: */
.grid > div {
  font-family: helvetica, "Open Sans", arial, sans-serif;
  font-weight: bold;
  font-size: 2rem;
  background: #1e202a;
  color: #fcc002;
  padding: 1rem;
  text-align: center;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.