Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<title>CSS Reference</title>
<style>
.container { width: 100px; }
.a { width: 100px; height: 20px; margin-bottom: 30px; background: blue; }
.b { width: 100px; height: 20px; margin-top: 20px; margin-bottom: 40px; background: green; }
.c { width: 100px; height: 20px; margin-top: 50px; background: orange; }
</style>
<p>Three rectangles separated by 30px and 50px gaps respectively.</p>
<div class="container">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
</div>