I'm using flexbox to align 2 images horizontally, however, I want a 3rd item (string inside a paragraph) to align vertically underneath 1 of the images.
The 3rd item (Week-by-Week Predictor) should go underneath the first image.
.flexbox-container {
display: flex;
}
.flexbox-item {
justify-content: center;
width: 25%;
margin-left: 5%;
margin-right: 5%;
border: 3px yellow inset;
}
.flexbox-item-1 {
flex-direction: column;
vertical-align: middle;
}
img {
width: 80%;
}
<div class="flexbox-container">
<div class="flexbox-item flexbox-item-1"> <img src="junk\Dark Pink Morning
Routine Tutorial YouTube Thumbnail (1).png" alt=""> </div>
<p class="flexbox-item-1">Week-by-Week Predictor</p>
<div class="flexbox-item flexbox-item-2"> <img src="junk\Dark Pink Morning
Routine Tutorial YouTube Thumbnail (2).png" alt=""> <p>Season Predictor</p>
</div>
</div>
I cannot put the paragraph inside the "flexbox-item flexbox-item-1" div otherwise it results as seen in the image on the right. So I would like to align the text underneath the div. Please can someone help me.
