JSFiddle - React, Tailwind, and code Playground
by brigand
HTML
<div class="grid">
<div class="item 1">1</div>
<div class="item 2">2</div>
<div class="item 3">3</div>
<div class="item wide">4</div>
</div>
CSS
* {
box-sizing: border-box;
}
.grid {
margin: 4em auto;
background: #c9c9c9;
box-shadow: 0 0 32px 3px hotpink;
width: 22em;
display: grid;
grid-gap: 1em;
grid-template-columns: repeat(3, 1fr);
}
.item {
background: black;
color: white;
text-align: center;
padding: 1em;
}
.item.wide {
grid-column: 1 / 4;
}