I looked through many forums and questions, but could not find anything about the vertical (not horizontal) fluid.
I have the markup as follows:
<div class="wrapper"> <div class="header"></div> <div id="content"></div> <div class="footer"></div> </div>
My CSS:
html,body {margin: 0; padding: 0; height: 100%;} .wrapper {width: 900px; margin: 0 auto; height:auto !important; height:100%; min-height:100%; position: relative;} #content {padding-bottom: 60px; } .footer { position: absolute; bottom: 15px; height: 45px;}
In this case, I have a layout with a fixed header and content height. The footer rests on the bottom.
All this is great, but I want to make a liquid vertical layout, so that the footer always sticks to the bottom (the same as it is now), but the header and contents have a liquid height: 30 and 70%, respectively.
How can i achieve this?
source share