<div id="parent">
  <div id="childDiv">childDiv</div>
  childText
</div>
#parent {
  background: yellow;
  text-align: center;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.