3 つの div があります。そのうちの 2 つは (左右に) フローティングで、3 つ目は他の 2 つの下に配置する必要があります。以前clear: both
はそうしていましたが、まったく機能しませんでした。
CSS
.left, .right {
width: 50px;
height: 100px;
background-color: red;
}
.left {float: left;}
.right {float: right;}
.bottom {
background-color: blue;
width: 100px;
height: 100px;
clear: both;
}
HTML
<div class="left">
</div>
<div class="right">
</div>
<div class="bottom">
</div>
よろしくお願いします。