<h2>Grid</h2>
<section class="grid">
  <div class="item">item1</div>
  <div class="item">item2</div>
</section>
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 100px 100px;
  grid-auto-columns: 40px;
  grid-gap: 20px;
}

.item:first-child {
  grid-column: span 3 / -1;
}

.item:nth-child(2) {
  grid-column-start: span 2;
  grid-column-end: 2;
}

External CSS

  1. https://codepen.io/matuzo/pen/vmpaWe

External JavaScript

This Pen doesn't use any external JavaScript resources.