2010-08-26 82 views
2

我需要中心我的页脚内容,我无法使其工作。CSS - 中心页脚内容

我中心用我的网页:#wrap {width: 960px;margin: 0 auto;}

我用我的头和内容float:left;float:right;

所以,我尝试我的中心内容页脚利用的:

#footer {height:0 auto;min-width:960px;float:left;}

div.inner_footer {height:720px;width:960px;margin:0 auto;} 

整个页脚转到左边,只显示在主半页的页脚。

然后,我从#footer {height:0 auto;min-width:960px;float:left;}起飞 float:left;页脚直奔顶部。

谢谢。

+0

@meagar - 为什么逗号? @Martin - 你可以包含一些HTML或链接到你正在工作的例子吗? – 2010-08-26 19:26:22

回答

2

尝试增加clear: both到您的页脚和删除float: left

+0

你是100%的权利。它现在就像一种魅力! – Martin 2010-08-26 19:30:35

+0

谢谢你Ryan Kinal! – Martin 2010-08-26 19:38:07

+0

总是乐于提供帮助 – 2010-08-26 19:41:43