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