like this:
<div id="container">
<div id="1st">1</div>
<div id="2nd">2</div>
<div id="3rd">3</div>
</div>
when setting the background color through the stylesheet, only the background color of the parent element is displayed
-sharpcontainer{
width: 100%;
height: 100%;
background-color: red;
}
and no matter how you set the background color of the child element, it doesn"t work:
-sharp1st{
display: block;
width: 100px;
height: 100px;
background-color: black;
}
the results are as follows:
stylebackgound-color:
Why is this?