开发者

Why is my footer not going to the bottom of the page?

开发者 https://www.devze.com 2023-01-06 01:19 出处:网络
My footer on my page seems to not want to get to the bottom of the content (or the bottom of the screen).

My footer on my page seems to not want to get to the bottom of the content (or the bottom of the screen).

How can I fix this? https:开发者_C百科//www.algxchange.com/home


See:

A Bulletproof Sticky Footer, Woohoo!


* { margin:0; padding:0; }

Perhaps the body still has the default spacing?

Also, it's recommended to use a doctype so your page is rendered in standards mode, not quirks mode ( anything goes, all hell breaks loose mode ).

And I assume you are already doing if not:

html, body { height:100%; } 
#wrapper { min-height:100%; margin-bottom:-50px; } 
#footer { margin-top:-50px; height:50px; }

#wrapper needs height:100% for IE6 since it doesnt support min-height.

0

精彩评论

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