我有一個sicky頁腳CSS文本對齊不工作
display:table-row;
的文本居中。
我希望版權與左側對齊,社交媒體與右側對齊。我這樣做:
<div id="footer">
<div id="container">
<span id="copyright">Copyright 2015</span>
<span id="socials">facebook</span>
</div>
</div>
的CSS
#footer {
display: table-row;
height: 10px;
}
#copyright { text-align: left;}
#socials { text-align: right;}
它似乎並不一致。請幫忙。感謝
呢? https://jsbin.com/cakogorito/edit?html,output – bassxzero
將text-align應用於父級以對齊父級的內聯元素內容。 – StickMaNX