简体   繁体   中英

How do I get my wrapper push down into sticky footer

I want make a sticky footer using jQuery.

Here what I have done http://jsbin.com/elapi/edit

I need some help to make my #wrapper border line will wrap entire page until footer.

Let me know

Check this out, although it doesnot use jquery. How to align footer (div) to the bottom of the page? in this http://ryanfait.com/sticky-footer/ and http://www.cssstickyfooter.com/ has some solution using simple css and html. The footer sticks to the bottom is the page is less than viewport. In case the page height increases more than viewport size then the footer is appended to the bottom of page, that is footer will not overlap with main body.

You needn't use jQuery to achieve this, you should be able to use pure CSS. Something like this:

#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

Then just make sure you have enough padding on the bottom of your main content to ensure it isn't obscured by the footer when scrolled to the end.

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