Striving to achieve a specific design in Bootstrap, but hitting roadblocks.
The criteria are as follows:
- No scrolling in the browser window.
- Display occupying 100% of browser height.
- Columns for Menu, Left contents, and Right contents must scroll independently.
My envisioned layout resembles this image
Here's my current code snippet:
html,body{height:100%; color: white;}
.bg-purple { background: rgb(48,0,50); }
.bg-gray { background: rgb(74,74,74); }
.bg-blue { background: rgb(50,101,196); }
.bg-red { background: rgb(196,50,53); }
.bg-green { background: rgb(50,196,53); }
<div class="container-fluid h-100">
<div class="row h-100">
<div class="col-2 bg-gray h-100" style="overflow-y: auto;">
menu<br />menu<br />menu
</div>
<div class="col-10 bg-green h-100">
<div class="container-fluid h-100 d-flex flex-column">
<div class="row justify-content-center bg-purple flex-shrink-0">
MY HEIGHT SHOULD CHANGE<br />BASED ON CONTENT.<br />NO ABSOLUTE HEIGHT SETTINGS.
</div>
<div class="row justify-content-center flex-grow-1 mh-100">
<div class="col bg-blue mh-100" id="left" style="overflow-y: auto;">
<p><strong>THIS AREA SHOULD SCROLL INDEPENDENTLY</strong></p><p>Left contents</p><p>Left contents</p><p>Left contents</p><p>Left contents</p><p>Left contents END</p>
</div>
<div class="col bg-red mh-100" id="right" style="overflow-y: auto;">
<p><strong>THIS AREA SHOULD SCROLL INDEPENDENTLY</strong></p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents</p><p>Right contents END</p>
</div>
</div>
</div>
</div>
</div>
</div>