I have a site with the following structure:
<div id="header"></div>
<div id="main">
<div id="navigation"></div>
<div id="content"></div>
</div>
<div id="footer"></div>
The navigation
is on the left and the content
div
is on the right. The information for the content
div
is pulled in through PHP, so it's different every time.
How to scale the navigation
vertically so that its height is the same as the content div
's height, no matter which page is loaded?
Look at this example.
From:
http://getbootstrap.com.vn/examples/equal-height-columns/equal-height-columns.css
states bootstrap but you do not need bootstrap to use this. Answering this old question, as this worked for me, and seems pretty easy to implement.
This was the same answer I provided to this Question
Try making the bottom margin 100%.
using jQuery: