If you only had to worry about Firefox and Webkit browsers, what CSS would you use to make the footer in the following HTML stick to the bottom of the page? Note: I don’t want to add any of markup to the page.
<html>
<body>
<header>...</header>
<article>...</article>
<aside>...</aside>
<footer>...</footer>
</body>
</html>
Just set the position as fixed and set bottom to 0:
Works a treat in FF, IE7, IE8, etc for me. Here’s my actual CSS on one of my sites for a footer (a div with the id
footer):