Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<style>
.float-left {
float: left;
clear: left;
width: 50px;
height: 50px;
background: green;
}
.float-right {
float: right;
clear: right;
width: 50px;
height: 50px;
background: green;
}
</style>
<div style="width: 150px; display: flow-root;">
<div class="float-left"></div>
<div style="height: 40px;"></div>
<div class="float-right"></div>
<div class="float-left" style="width: 100px; height: 40px; background: cyan;"></div>
<div class="float-right"></div>
<div class="float-left"></div>
<div class="float-right"></div>
</div>