I’m trying to apply a background color to the content block of a page, but it is not working. I’ve included the CSS and HTML below. Any thoughts why?
body
{
background-color: #ffffd1;
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
color: #576729;
}
#wrapper
{
width: 700px;
margin: 0 auto;
padding: 0;
border: none;
}
#container1
{
background-color: #bdc79a;
width: 640px;
margin: 0 auto;
padding: 0;
border: none;
}
#content_left
{
font-weight: bold;
width: auto;
padding: 5px;
float: left;
}
.text_center
{
text-align: center;
}
<div id="wrapper">
<div id="container1">
<div id="content_left" class="text_center">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec a libero aliquet lorem sodales ornare. Cras sed accumsan neque.
Vestibulum varius rhoncus turpis, vitae lacinia arcu rutrum ac. Vivamus sed
massa non nunc dapibus vehicula ut sit amet urna.</p>
</div>
</div>
</div>