This sticky CSS footer code pushes the site footer toward the bottom of the browser window. This is valid CSS and HTML without any unpleasant hacks, so it works in all major browsers (even now IE5 and IE6 are not working).
How to use the CSS Sticky Footer on your website,
Add the following CSS lines to your stylesheet. The negative value for the field in .wrapper is the same as the height of .footer and .push. A negative margin should always match the full height of the footer (including any additions or boundaries that you can add). Follow this HTML structure. Content cannot be outside the tags .wrapper and .footer div unless it is absolutely CSS. There should also be no content inside div.push, as it is a hidden element that “pushes” the footer so that it does not overlap anything.
source share