Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<title>CSS Reference</title>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
.parent { width: 100px; padding-bottom: 20px; background: cyan; font: 20px/1 Ahem; }
.inner { width: 100px; height: 20px; margin-bottom: 40px; background: green; }
.sibling { width: 100px; height: 20px; background: green; }
</style>
<p>Green square inside cyan parent with 40px gap below to padding edge, then 20px padding, then a green square.</p>
<div class="parent">
<div class="inner"></div>
</div>
<div class="sibling"></div>