<div class="container">
<p class="item">.item</p>
</div>
xxxxxxxxxx
.container {
display: grid;
gap: 10px;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 2rem 2rem 2rem;
}
.item {
grid-column: 2 / 3;
grid-row: -1 / -3;
}
/* ETC (Formatting only): */
body {
margin: 1.5em;
font-size: 130%;
font-family: sans-serif;
background: #F2F0EC;
color: #2E2C08;
}
.container {
border: 10px solid #2E2C08;
background: white;
padding: 1em;
}
.item {
padding: 0.5em;
text-align: center;
color: #2E2C08;
background: #e5e3de;
font-weight: bold;
margin-top: 0;
margin-bottom: 0;
text-align: center;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.