I'm struggling to make my right side navigation div fill up the remaining vertical space based on the content box size. I've experimented with setting the height of the body and the div to 100%, using absolute positioning, and even shedding a few tears, but none of these methods are giving me the desired outcome.
Check out the Fiddle I've been working on as a test: https://jsfiddle.net/5punpLs6/
#nav {
float: right;
background-color: blue;
height: 100%;
}
#content {
background-color: #333;
overflow: hidden;
}
#footer {
background-color: green;
height: 50px;
}
<div id="nav">
<ul>
<li>home</li>
<li>home</li>
<li>home</li>
</ul>
</div>
<div id="content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed cursus nulla nisl, sit amet hendrerit erat iaculis in. Ut tristique sem purus, sit amet condimentum ex auctor vitae. Aliquam ornare lorem quis odio laoreet placerat. Fusce nec egestas erat, ac porta lectus. Vivamus accumsan sed elit quis volutpat. Donec suscipit fermentum arcu eu consectetur. Aenean sit amet neque at enim dapibus imperdiet. Ut facilisis tellus leo, sed rhoncus lacus suscipit quis. Morbi sit amet quam ullamcorper, tincidunt lacus a, hendrerit dui. Pellentesque laoreet lectus eget tempor suscipit. Nam quis condimentum eros, a facilisis neque. Pellentesque ultrices aliquet nisi vitae interdum.</p>
</div>
<div id="footer"></div>