クリック可能な画像をフッター領域の中央に配置しようとしています。ChromeとFirefoxでテストしましたが、フッター全体をクリックできます。Chromeインスペクターは、要素を高さ0ピクセル、幅0ピクセルとして表示します。私は何が間違っているのですか?
PS:私はTwitterBootstrapを使用しています
CSSは次のとおりです。
body {
margin:0;
padding-top: 0px;
margin-bottom: 20px;
}
#footerLogo {
display:block;
margin-left: auto;
margin-right: auto;
width: 73px;
}
#footer {
position: fixed;
bottom: 0px;
width: 100%;
padding-top: 5px;
padding-bottom: 5px;
background-color:red;
}
HTMLは次のとおりです。
<div id="footer">
<a href="#"><img id="footerLogo" src="/images/footer.gif"></a>
</div>