I have two divs that I want to align, with one on the left and the other on the right (similar to this).
I've experimented with self-align-start
and self-align-end
in each column, but haven't achieved the desired outcome. I also added the class row-cols-1
(not shown in the screenshot).
What am I overlooking? Here is a snippet of my code:
.about-me {
max-width: 300px;
}
.current-work {
max-width: 300px;
}
<body>
<section id="about" class="container-fluid">
<div class="row row-cols-1 justify-content-between">
<div class="about-me col-6">
<h2> About Me </h2>
<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<p>
</div>
<div class="current-work col-6">
<h2> What I'm Doing </h2>
<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<p>
</div>
</section>
</body>
To see the outcome, click here