开发者

Can't figure out CSS Sticky Footer! [duplicate]

开发者 https://www.devze.com 2023-02-09 11:34 出处:网络
This question already has answers here: 开发者_开发问答 Closed 12 years ago. Possible Duplicate: How do you get the footer to stay at the bottom of a Web page?
This question already has answers here: 开发者_开发问答 Closed 12 years ago.

Possible Duplicate:

How do you get the footer to stay at the bottom of a Web page?

Hello,

I can't get my footer to stick to the bottom of my page!! I have been trying everything and I can't get the sticky html/css code to work

No matter what I do, the footer is offset, or half way up the page... I have tried like 3 different versions of code to make it stick, no luck

could someone please help me?? If someone could please tell me the correct coding

My site is: http://graves-incorporated.com/test/index.html

Css: http://graves-incorporated.com/test/p7csslm/p7csslm10.css

Thanks, Dan mrlincoln89@hotmail.com


adding position: fixed to your footer usually does the trick(then set bottom: 0 )

something like this:

#footer {
  position: fixed;
  bottom: 0;
}

for more information try this link:

How do you get the footer to stay at the bottom of a Web page?


You may want to take a look at this site.

Hope it helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消