My page has 3 main divs: top menu (static height), main content (variable height based on length of content), and a side menu
I want the side menu's height to match that of the main content's height. The main content is min-height 100vh - topmenu's height, but most of the time it's much taller. My problem is that the side menu's content if often much shorter. The background color and borders only extend down to hit that content. If I try to do height 100% it stays the same, and I can't fix it to a static height since the main content's height is variable.
How can I match my side menu's height to the main content's height. Or, make the side menu's height 100% of the scrollable viewport.
I've tried using bootstrap's grid system to set things up but haven't been able to get it working yet.
<div>
<div class="container-fluid top-menu">...</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-4 side-menu-view">...</div>
<div class="col-md-20 main-content-view">...</div>
</div>
</div>
CSS
.top-menu {
height: 47px;
}
.side-menu-view {
background-color: $background-light;
border-right: solid 1px $border-light;
height: 100%;
}
.main-content-view {
border-left: solid 1px $border-dark;
height: 100%;
}
Update Including jsfiddle https://jsfiddle.net/joshuaohana/DTcHh/12031/ Be sure to expand preview to full width so you can see. The issue is I want the red background to reach down full height of the main content on the right