Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<title>CSS Reference</title>
<style>
.container { width: 200px; }
.first { width: 200px; height: 20px; margin-bottom: 40px; background: blue; }
.float-a { float: left; width: 50px; height: 30px; background: yellow; }
.float-b { float: right; width: 50px; height: 30px; background: orange; }
.second { width: 200px; height: 20px; background: blue; }
</style>
<p>Two blue rectangles 40px apart; yellow and orange floats sit between them.</p>
<div class="container">
<div class="first"></div>
<div class="float-a"></div>
<div class="float-b"></div>
<div class="second"></div>
</div>