I'm trying to create a site where the title should be 13% high, and section1 should completely and completely fill the rest of the screen in the same case with section2 plus the footer, so if the user scrolls all the way down the last two will fit the screen.
I have been on this for a good time, the problem is that the container does not grow beyond the height, so theres an overflow with section2, and the footer is on top of it. I tried to do this:
100% parent container extension for floating content account
but could not get it to work.
My source code is a mess, so I tried to clear it so that I could focus on that. It looks like this:
HTML
<header> </header> <div class="container-fluid"> <div id="section1" class="row-fluid fill-height" > <div class="span6" id="red-space"> </div> <div class="span6"> </div> </div> <div id="section2" class="row-fluid fill-height"> </div> </div>
CSS
html, body { height: 100%; } body{ background-color:#fafafa; color:#5b5b5b; min-width:0; } header, footer { height: 13%; } .container-fluid { padding: 0; min-height:83%; height: 83%; overflow: hidden; } .fill-height{ height:100%; }
source share