私は、次のdivがあります。このCSSで垂直整列は無視されます
<div id="footer">
Copyright 2011 <a href="http://www.mauricederegt.com" target="_blank">mauricederegt.com</a> | <img src="images/facebookIconSmall.jpg" alt="" />
<a href="http://apps.facebook.com/mahjong_solitaire/" target="_blank">Facebook</a> | <img src="images/twitter.gif" alt="" />
<a href="https://twitter.com/mahjonggame" target="_blank">Twitter</a>
</div>
:この1をロードするときに
#footer {
position: relative;
z-index:999999;
width: 760px;
/*height: 50px;*/
top: 617px;
vertical-align: middle;
border: 1px solid #333;
text-align: center;
font-size:11px;
display:table-cell;
}
#footer img {
position:relative;
bottom: -3px;
}
しかし、div要素のコンテンツは、中央に整列されていないが、しかし、底に。私は何が欠けていますか?
テキストを画像の中央線に揃えますか?あなたのフッタオブジェクトは高さが指定されていないので、私はそれがオートサイズであると仮定します。 – lsuarez
'display:table-cell'はすべてのブラウザで動作しません。 – Sparky