<div class="grid">
<div class="one">1</div>
<div class="two">2</div>
<div class="three">3</div>
<div class="four">4</div>
</div>
* { box-sizing: border-box; }
body {
margin: 40px;
background-color: #fff;
color: #444;
font: 1.4em Sansita, sans-serif;
display: flex;
justify-content: center;
}
.grid {
display: grid;
grid-template-columns: repeat(3, 100px);
grid-auto-rows: 100px;
grid-gap: 20px;
margin-bottom: 40px;
}
.grid > * {
padding: 10px;
border: 5px solid rgba(214,129,137,.5);
border-radius: 5px;
background-color: rgba(233,78,119,.5);
color: #fff;
}
.one {
grid-row: 1 / -1;
grid-column: 1 ;
}
.two {
grid-row: 1 ;
grid-column: 2 / -1;
}
.three {
grid-row: 2 / -1;
grid-column: 2;
}
.four {
grid-row: 3;
grid-column: 3;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.