<div style="margin-bottom:20px">foo</div>
<div style="margin-top:20px">bar</div>
div {
  background: lightgray;
  height: 20px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.