I'm working on a Bootstrap(4) page with 3 rows that need to stay visible all the time. However, when I add elements to the middle row's column and they overflow, the entire row expands in height, overflowing into other rows.
Is there a way to prevent this from happening?
I've searched for solutions and tried different suggestions but so far, I've only made it worse.
Here's part of the code I've been using:
html,
body {
height: 100%;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" />
<div class="container-fluid h-100 d-flex flex-column">
<div class="row h-100" style="background-color: grey;">
top<br>
</div>
<div class="row h-100" style="background-color: yellow;">
<div class="col-lg-9 h-100" style="overflow-y: auto;">
something1<br> something2
<br> something3
<br> something4
<br> something5
<br> something6
<br> something7
<br> something8
<br> something9
<br> something10
<br> something11
<br> something12
<br> something13
<br> something14
<br> something15
<br> something16
<br> something17
<br> something18
<br> something19
<br> something20
<br> something21
<br> som...ontinued...
</div>
<div class="col-lg-1 h-100 bg-danger"></div>
<div class="col-lg-2 bg-primary h-100">s1<br>s2<br></div>
</div>
<div class="row h-100" style="background-color: green;">
bottom<br>
</div>
</div>