In my Twitter Bootstrap project, I have a div element that contains content which will overflow vertically off the screen.
I want the div to adjust its height to match the size of the browser window, allowing the remaining content to scroll vertically within the window.
I attempted a solution in a sample code on jsFiddle, but it did not work as intended.
#content {
border: 1px solid #000;
overflow-y:auto;
height:100%;
}
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">Side Bar</div>
<div class="span9" id="content">
Content Bar Example Content
</div>
</div>
</div>
I am asking this question after browsing through similar inquiries on Stack Overflow.
EDIT--
Apologies for any confusion. What I actually want is for my div to fill the remaining vertical space on the screen.
If anyone has a suggestion for a responsive solution, that would be much appreciated.