I want my footer to be always on the bottom of the page, even when the content is very short. I have checked this one http://matthewjamestaylor.com/blog/keeping-footers-at-the-bottom-of-the-page but does not work.
My HTML:
<body>
<div id="container">
<div id="header"></div>
<div id="content"></div>
</div>
<div id="wrap-footer">
<div id="footer"></div>
</div>
</body>
My CSS:
#footer {
height: 320px;
position: absolute;
width: 100%;
bottom: 0;
}
With this one, when I have a short content is ok, but when I have a long one the footer goes in the middle of the page and stuck there. Does anyone have an idea ? Thanks in advance