我正在嘗試創建一個跨瀏覽器3列的頁腳,它們的寬度彼此相等,但不會超出900px的主體寬度。這段代碼沒有這樣做?CSS頁腳佈局問題
html
<div id="footer">
<p class="left">About<br />Contact<br />Next line here</p>
<p class="right"> does not evaluate or guarantee the accuracy</p>
<p class="centered">Terms<br />Privacy<br />Disclaimer</p>
</div>
css
#footer {
color: #ffffff;
width:100%;
background: #111;
clear: both;
overflow: auto;
}
.left {
text-align:left;
float:left;
}
.right{
float:right;
text-align:right;
}
.centered{
text-align:center;
}