<h2>Collapsing Margins</h2>
<p>Example text.</p>
h2 {
    margin: 0 0 20px 0;
}

p {
    margin: 10px 0 0 0;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js