Reputation: 38
I´ve been searching the interweb for two days, but have not been able to figure this out. I am making a webpage with loads of included php files, and I have been asked to make a footer with contact information etc.
The problem is that i can´t get the footer to stick to the bottom, and I have discovered that it´s because the body doesn´t extend all the way to the bottom of the page.
Upvotes: 1
Views: 2959
Reputation: 381
I have found a link that perfectly answers your question, that is "Stay On Top" script at http://www.dynamicdrive.com/dynamicindex17/stayontop.htm
Upvotes: 2
Reputation: 7380
See this link for a solution: http://ryanfait.com/sticky-footer/ Made with pure CSS :)
The body element doesn´t have a height like you think of it, it is as height as the elements in it.
Upvotes: 2