Currently, I am working on the CSS for two column sections: section one and section two. My goal is to have the first column of section one occupy the available space without overflowing into the second column, as illustrated in this image.
https://i.sstatic.net/fB80J.png
The content highlighted in red should remain within Section One's column. When previewing the document for printing, there appears to be excess free space below Section One's column that should not overflow into Section Two's column at all.
.two-column {
-webkit-columns: 100px 2;
/* Chrome, Safari, Opera */
-moz-columns: 100px 2;
/* Firefox */
columns: 100px 2;
-webkit-column-gap: 40px;
/* Chrome, Safari, Opera */
-moz-column-gap: 40px;
/* Firefox */
column-gap: 40px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.0/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.0/js/bootstrap.min.js" crossorigin="anonymous"></script>
<div class="container">
<div class="two-column">
<div class="row">
<!-- SECTION ONE -->
<h1>Section One</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Numquam molestias quas iste debitis animi aspernatur, deleniti nam? Vitae iste quia placeat? Ducimus ratione quod impedit ipsam distinctio et odit quidem.
</p>
<p> (content continues...) </p>
</div>
<div class="row">
<!-- SECTION TWO -->
<h1>Section Two</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Qui vel quia, facere numquam vitae atque, neque doloremque cumque eos porro. Dolorum hic iusto quo, numquam eius magnam illum dignissimos id.
</p>
</div>
</div>
</div>
I am aware that another method like using flex-box side by side could solve this issue, but I specifically need to achieve it using only CSS Column Style. Any suggestions on how to accomplish this would be greatly appreciated. Thank you!