<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;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.