<div class="container">
<div class="item item--1">
Item 1
</div>
<div class="item item--2">
Item 2
</div>
<div class="item item--3">
Item 3
</div>
</div>
.item--3 {
align-self: flex-end;
}
/* 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;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1em;
height: 5em;
}
.item {
padding: 0.5em;
text-align: center;
color: #2E2C08;
background: #e5e3de;
font-weight: bold;
margin-top: 0;
margin-bottom: 0;
text-align: center;
}
.container {
display: flex;
height: 10em;
}
.item {
padding: 1em;
text-align: center;
flex: 1;
}
.item--3 {
color: white;
background: #2E2C08;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.