I'm trying to make it so that the explanation
and participation
class are flexboxes, but side by side to each other. While below them benefits
and requirements
would be stacked on top of each other.
I tried to use flex-direction:row;
for the explanation
and participation
section, and then switch to flex-direction: column;
for the rest, but that isn't working. I need help trying to figure out this can be done. Also,I can't change my HTML.
.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>