I have a site with the following structure:
<
Add display: grid
to the parent
I find that setting the two columns to display: table-cell;
instead of float: left;
works well.
.row-eq-height {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
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%.
margin-bottom: 100%;
If you don't mind the navigation div being clipped in the event of an unexpectedly-short content div, there's at least one easy way:
#main {
position: relative;
}
#main #navigation {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 10em; /* or whatever */
}
#main #content {
margin: 0;
margin-left: 10em; /* or whatever width you set for #navigation */
}
Elsewise there's the faux-columns technique.
[Referring to Dmity's Less code in another answer] I'm guessing that this is some kind of "pseudo-code"?
From what I understand try using the faux-columns technique that should do the trick.
http://www.alistapart.com/articles/fauxcolumns/
Hope this helps :)