I'm having trouble with a page layout using a Bootstrap grid system. I simply want a left navigation div that contains a defined amount of links, but the nav should fill the rest of the page vertically until the end of the content div on the right. Using 100% height doesn't seem to be working in my case.
<div class="row">
<div id="nav" class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<ul>
<li>Link</li>
<li>Link</li>
<li>Link</li>
<li>Link</li>
<li>Link</li>
<li>Link</li>
</ul>
</div>
<div id="main" class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
<h1>Header</h1>
<p>content</p>
<p>content</p>
<p>content</p>
<p>content</p>
<p>content</p>
<p>content</p>
</div>
#nav {
position: relative;
height: 100%;
background-color: green;
}
#main {
height: 100%;
background-color: yellow;
}
Here is a fiddle for what I'm working with: https://jsfiddle.net/jLh4vxf4/
The horizontal layout is fine, I just can't get my nav to vertically end with my content. Thank you for any help.