How do i make use of justify-content: space-between;?
I need space between 2 articles in a section. And space between an img and a div in each article.
How it currently looks like and... It should look like this .
Codepen: https://codepen.io/Aetherr/pen/MPRJva
EDIT: changed .flexcontainer flex-direction to column
/* === BELIEFS === */
.beliefs {
display: flex;
flex-direction: row;
justify-content: space-between;
}
/* === RESERVATION === */
.reservation {
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
}
/* === FLEXCONTAINER === */
.flexcontainer {
display: flex;
flex-direction: column;
align-items: center;
flex-wrap: wrap;
}
section.flexcontainer p {
width: 500px;
}
section.flexcontainer img {
width: 500px;
}
<section class="flexcontainer">
<article class="beliefs">
<img src="images/beliefs.jpg" alt="Our beliefs image" title="Our beliefs">
<div>
<h3>Our beliefs</h3>
<p>When eating...</p>
<p>We know...</p>
</div>
</article>
<article class="reservation">
<img src="images/reservation.jpg" alt="reservation image" title="Reservation">
<div>
<h3>Reservation</h3>
<p>To fully...</p>
<p>This way...</p>
</div>
</article>
</section>