<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 class="item item--4">
Item 4
</div>
</div>
.item.item--3 {
order: -1;
font-weight: bold;
background-color: #abab9d;
}
/* 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: flex;
gap: 1em;
padding: 1em;
}
.item {
padding: 0.5em;
margin: 0;
text-align: center;
background: #e5e3de;
font-weight: bold;
flex: 1;
padding: 1em;
height: 5em;
min-width: 5em;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.