My Bootstrap 4 layout consists of a simple two-column structure:
<main>
<div class="container-fluid">
<div class="row">
<div class="col-md-3">
<p>Left column</p>
<p>Left column</p>
<p>Left column</p>
</div>
<div class="col-md-9">
<p>Right column ... Lorem ipsum dolor sit amet, consectetur adipiscing elit....</p>
<p>Right column ... Lorem ipsum dolor sit amet, consectetur adipiscing elit....</p>
<p>Right column ... Lorem ipsum dolor sit amet, consectetur adipiscing elit....</p>
<p>Right column ... Lorem ipsum dolor sit amet, consectetur adipiscing elit....</p>
<p>Right column ... Lorem ipsum dolor sit amet, consectetur adipiscing elit....</p>
</div>
</div>
</div>
</main>
I am looking to have the right column always reach the bottom of the screen and be vertically scrollable. Sometimes the content in the right column will only take up a small portion of the screen, while other times it may overflow with numerous paragraphs.
UPDATE: I want to clarify that I need the right column to extend down to the viewport's bottom.
- The layout also includes elements such as
nav
above themain
, with dynamic heights