<!DOCTYPE html>
<style>
.grid {
  display: grid;
  padding: 10px;
  grid-template-columns: 40px 40px;
  grid-template-rows: 40px 40px;
  border: solid;
  width: 140px;
  height: 140px;
  gap: 28px;
}
.grid > div {
  background: green;
}
</style>
<div class="grid">
  <div></div>
  <div></div>
  <div></div>
  <div></div>
</div>
