<div class="wrapper">
<div class="gold">1</div>
<div class="red">2</div>
<div class="blue">3</div>
</div>
* {
box-sizing: border-box;
}
.wrapper {
font-family: monospace;
color: #fff;
border: 2px solid #ddd;
display: flex;
width: 500px;
flex-wrap: wrap;
}
.wrapper > div {
padding: 56px 0 76px 0;
font-weight: 700;
font-size: 2em;
text-align: center;
height: 25%;
width: 50%;
}
.gold {
background-color: gold;
}
.red {
background-color: red;
}
.blue {
background-color: steelblue;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.