blob: c3732dedffb0c3c4ffa791b1470cf85a3fd9e0ed [file] [log] [blame]
<style>
.container {
width: 300px;
height: 100px;
}
.float {
background-color: blue;
}
.root {
overflow: hidden;
background-color: red;
}
</style>
<div class=container>
<div class=float style="float: left; width: 100px; height: 20px;"></div>
<div class=float style="float: right; width: 110px; height: 20px;"></div>
<div class=float style="float: left; width: 200px; height: 20px;"></div>
<div class=float style="float: right; width: 110px; height: 20px;"></div>
<div class=root style="width: 90px; height: 20px;"></div>
</div>
<div class=container>
<div class=float style="float: left; width: 100px; height: 20px;"></div>
<div class=float style="float: right; width: 110px; height: 20px;"></div>
<div class=float style="float: left; width: 200px; height: 20px;"></div>
<div class=float style="float: right; width: 110px; height: 20px;"></div>
<div class=root style="width: 100px; height: 20px;"></div>
</div>
<div class=container>
<div class=float style="float: left; width: 100px; height: 20px;"></div>
<div class=float style="float: right; width: 110px; height: 20px;"></div>
<div class=float style="float: left; width: 200px; height: 20px;"></div>
<div class=float style="float: right; width: 110px; height: 20px;"></div>
<div class=root style="width: 190px; height: 20px;"></div>
</div>
<div class=container>
<div class=float style="float: left; width: 100px; height: 20px;"></div>
<div class=float style="float: right; width: 110px; height: 20px;"></div>
<div class=float style="float: left; width: 200px; height: 20px;"></div>
<div class=float style="float: right; width: 110px; height: 20px;"></div>
<div class=root style="width: 300px; height: 20px;"></div>
</div>