Working with Bootstrap 4 Beta in an attempt to create two columns that maintain full height regardless of screen size.
The code below functions perfectly, ensuring both columns maintain full height across all devices.
However, upon inserting the bootstrap navbar inside the container
, above the row
, I notice extra space added to the page causing a scrollbar to appear.
It seems that Bootstrap is not factoring in the height of the navbar in its calculations.
I am uncertain how to resolve this issue.
DEMO https://jsfiddle.net/a2z4paes/1/
Removing the nav
block reveals that the columns attain full height without a scrollbar.
This is my HTML
<div class="container h-100">
<div class="row justify-content-center h-100">
<div class="col-md-8" style="background: lightgreen; height: 100%">
<h1>test</h1>
</div>
<div class="col-md-4" style="background: lightblue;">
<h1>test</h1>
</div>
</div>
</div>