I’ve made a bunch of sticky footers but this site just hates me or something…or maybe I developed it in WordPress and don’t know my WP as well as I should
As you can see the footer, which should be stuck to the bottom of the page is just floating around, being annoying. Anyone have any ideas? I can’t seem to get the .body to pay any attention to the height:100%, min-height: 100% declarations.
Wow that wordpress certainly makes it hard to code something so simple. Almost impossible to debug.
Your main problem is that you are applying the 100% height routines to the element called .container but that is the wrong element. The 100% routines should be applied to the main parent and the first element on the page which in your case is #whitewrap. You need to remove the 100% high routines from container and apply the to #whitewrap instead. The footer also needs to sit outside #whitewrap otherwise it is not pushed down to the bottom.
You’ll probably need to tweak that because you have styles everywhere.
Don’t set min-height and height in the same rule (with the same units) or all you get is a fixed height and nothing more.
Finally I should point out that the “push” sticky footer method is a very broken implementation of my original technique and you should read the CSS FAQ for the fully working model ( see my sig).