<div class="caption">display: flex;</div>
<div class="flex-container">
<div>
<p>1</p>
</div>
<div>
<p>2</p>
</div>
<div>
<p>3</p>
</div>
<div>
<p>4</p>
</div>
<div>
<p>5</p>
</div>
</div>
.flex-container {
display: flex;
background-color: lighten(darkorange, 20%);
border: 1px solid black;
margin-bottom: 10px;
& div {
border: 1px solid black;
width: 100px;
height: 100px;
background-color: darkorange;
margin: 5px;
}
p {
text-align: center;
margin: 0;
margin-top: 0.3em;
}
}
.caption {
text-align: center;
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.