<div id="container">
<div id="content">
<div class="halfLeft"></div>
<div class="halfRight"></div>
</div>
</div>
#container{ width:960px;margin:auto; background-image:url(../img/contentbg.jpg);}
.halfLeft{font: 1.5em BrushcutRegular; background:url(../img/halfbg.png) no-repeat;margin:12px 0px 12px 12px;float:left;width:468px;height:336px;}
.halfRight{font: 1.5em BrushcutRegular; background:url(../img/halfbg.png) no-repeat;margin:12px 12px 12px 0px;float:right;width:468px;height:336px;}
が、これは... #containerはIE6で左に余分な12ピクセルを追加しますコンテナのdivの余分なマージンIE6
間違って何任意のアイデア?
問題が解決するまでCSSプロパティを削除しようとしましたか?また、直感的ではないにもかかわらず、左と右の両方のdivを左に浮かべる方が一般的には良い方法です。 –