[Solved] how to write code for two background colors


An example:

On your CSS:

.box1 { background-color: gray; }
.box2 { background-color: yellow; margin: 0 auto; padding: 10px; width: 60%; }
.box3 { border: 1px solid black; padding: 3px; }

On your HTML:

<div class="box1">
    <div class="box2">
        <div class="box3">Content here</div>
    </div>
</div>

0

solved how to write code for two background colors