I have four flexed container boxes and I am looking to add text below them in a row. Does anyone have suggestions on how I can achieve this alignment, as well as tips for optimizing the code?
.container {
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
}
.square {
flex: 1;
flex-direction: column;
background-color: white;
border: solid;
border-color: #3882f6;
border-radius: 8px;
margin: 33px;
height: 150px;
}
.subtext {
display: flex;
flex-direction: row;
justify-content: space-around;
}
p {}
<div class="container">
<div class="square one"></div>
<div class="square two"></div>
<div class="square three"></div>
<div class="square four"></div>
</div>
</div>
<div class="subtext">
<p class="sub">
<div class="box1">
Wow !
</div>
<div class="box2">
Wow !
</div>
<div class="box3">
Wow !
</div>
<div class="box4">
Wow !
</div>
</div>