CSS - 中心页脚内容

时间:2010-08-26 19:23:43

标签: html 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;}

整个页脚向左移动,在主页面中仅显示半页脚。

然后,我起飞了  来自float:left;的{​​{1}}页脚直接登顶。

谢谢。

1 个答案:

答案 0 :(得分:2)

尝试将clear: both添加到您的页脚,然后删除float: left