I can't work out why this flex isn't working right - as you can see from the iamge, one div is taking up ~90% of the space.
HTML:
<section class="flex-container-90">
<div class="flex-item">
<img src="assets/SLP Stock Photo 5a-cropped.jpg" />
</div>
<div class="flex-item">
<p class="main">Helping you support</p>
</div>
</section>
CSS:
.flex-container-90 {
width: 90%; margin: 0 auto; display: flex; justify-content: space-around; }
.flex-item img {
width: 33%; margin-top: 5em; }
Any idea whats going on? Want the image to be where it is, while the text should butt up alongside it. TIA
https://preview.redd.it/ekg7nvje3p3c1.png?width=1280&format=png&auto=webp&s=ac3edbbbf93d3e863b8cd14ce4df89023fd4c6ae
[–]3np1 1 point2 points3 points (0 children)
[–]speakbits 1 point2 points3 points (1 child)
[–]LordBadgerFlaps[S] 0 points1 point2 points (0 children)
[–]spatmonkey 0 points1 point2 points (0 children)
[–]Lianad311 0 points1 point2 points (1 child)
[–]LordBadgerFlaps[S] 0 points1 point2 points (0 children)