all three footers have the same html and css code but actiing differently in each of the three pages. some times its at bottom, at other page its in the middle, at the other its at bottom but making a gap between its previous div (#main)
jsfiddle.net/BBnzW/
jsfiddle.net/6cYQg/
jsfiddle.net/USSds/
any guess why?
Please only answer after making sure in jsfiddle that it works. I have done alot of tries before.
The code is above stackoverflow code limit of 30000chars, so cant paste here.
#main { position: absolute }is causing the footer to position in the middle of your content. And.w1 { padding-bottom: ... }and#footer { margin-top: ... }are producing the extra white space. But I don’t think removing that will completely solve your problem.Seems like you are trying to get a sticky footer. Try this http://jsfiddle.net/fL4XF/18/. Simple css and no extra markup. It works in IE7.
Here’s another Sticky Footer that works in IE6. However, it needs extra markup. It’s up to you.