<div class="inheritance_demo box">
  Inheritance with em units demo
</div>
.box {
  background: #3498db;
  color: #fff;
}

.inheritance_demo {
  padding: 1.5em;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

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