简体   繁体   中英

HTML / CSS: How to make the content follow the footer?

My problem is that I need a footer which is always on the bottom, even if the page scrolls etc.. but I don't know how to make the content follow the footer.

Please see the example given, this is a very similar layout, I have a sidebar also, but you can see with firebug, or something like that, that the body div is not following the footer.


Example: Click for demo

You could make it with Javascript + CSS .

With CSS you could put the footer to the bottom of the page, and with javascript your could specify the height of the page and modify the height of your content.

I've answered a similiar question before, you might want to check it out:

Div at bottom of window and adaptable height div

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM