<div id="nocolor" class="common">背景色を持たないボックス</div>
<div id="bgcolor" class="common">背景色を持つボックス</div>
div.common {
  font-size: 20px;
  border: 2px solid #000000;
  padding: 20px;
}
div#bgcolor {
  background-color: #dddddd;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.