My goal is to arrange the explanation
and participation
sections as flexboxes, positioned side by side. Below them, I want the benefits
and requirements
sections stacked on top of each other.
I have attempted to use flex-direction:row;
for the explanation
and participation
parts, and then switch to flex-direction: column;
for the remaining sections, but this approach has not been successful. I am in need of assistance to figure out how to achieve this. Additionally, it is important to note that I cannot modify the HTML structure.
.main {
display: flex;
}
.benefits {
flex-direction: column;
}
.requirements {
flex-direction: column;
}
<main class="main" id="zen-supporting" role="main">
<section class="explanation" id="zen-explanation" role="article">
<h3>What's This About?</h3>
<p>There</p>
</section>
<section class="participation" id="zen-participation" role="article">
<h3>Participation</h3>
<p>Download</p>
</section>
<section class="benefits" id="zen-benefits" role="article">
<h3>Benefits</h3>
<p>Why participate?</p>
</section>
<section class="requirements" id="zen-requirements" role="article">
<h3>Requirements</h3>
<p>gtgtgtg</p>
</section>