メイン div に 4 つの div があります。すべてが左に浮かんでいて、最後の 1 つは空のスペースを残します。そのスペースを最後の div (全幅) で埋めたいと思います。
<div id="container">
<div class="col1">
</div>
<div class="col2">
</div>
<div class="col3">
</div>
<div class="col4">
</div>
</div>
#container {
width: 600px;
height: 200px;
background:yellow;
}
.col1 {
float:left;
width:90px;
height: 200px;
background:red;
}
.col2 {
float:left;
width:130px;
background:blue;
height: 200px;
}
.col3 {
float:left;
width:130px;
background:red;
height: 200px;
}
.col4 {
float:left;
width:130px;
background:blue;
height: 200px;
}