<div class="foo">
    <div class="bar"></div>
</div>
        div {
            width: 100px;
            height: 100px;
            margin: 100px;
        }

        .foo {
            background: skyblue;
        }

        .bar {
            background: palevioletred;
        }

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.