In the previous question, I learned how to save the footer at the bottom of the page. ( see other questions )
Now I'm trying to vertically center the content between the div and the headers.
so i have:
#divHeader { height: 50px; } #divContent { position:absolute; } #divFooter { height: 50px; position:absolute; bottom:0; width:100%; } <div id="divHeader"> Header </div> <div id="divContent"> Content </div> <div id="divFooter"> Footer </div>
I tried to create a parent div to place the existing 3 divs and assign the div div vertical-align: middle; but it doesnβt lead to anything.
source share