Hello.
I’m trying to lay a background color on a div but I’m unable to. I don’t know why is not doing it or if I’m doing something wrong. I’m fairly new to CSS but, can’t understand why the bgcolor is not inhereted by the child divs
I would like to know why I’m not getting a background color on customer_profile div.
Now, if I wrap customer_profile with another div for example:
#customer_bg{
background-color: #d5e6ff;
}
then it works but, I’m not getting the desired results.
Any suggestions??
Thanks in advanced for your help.
[code=html]
#customer_profile{
width: 100%
background-color: #d5e6ff;
margin-top: 10px;
border: 1px #000 solid;
padding-top: 5px;
padding-bottom: 5px;
}
#customer_info {
font-size: 12px;
}
#customer_info td{
padding-bottom: 10px;
}
#other_cust_info{
float: left;
margin-left: 0px;
width: 410px;
padding-left: 10px;
}
#other_cust_info2{
float: left;
margin-left: 15px;
width: 410px;
padding-left: 10px;
}
<div id=”customer_profile”>
<div id=”other_cust_info”>
<table id=”customer_info”>
<tr><td class=”label”>Mensualidad</td><td>:</td><td><?=$fee[‘m_desc’]?> $ <?=number_format( $fee[‘m_amount’],2,’.’,’,’)?></td></tr>
</table>
</div>
<div id=”other_cust_info2″>
<table id=”customer_info”>
<tr><td class=”label”>Fecha de registro</td><td>:</td><td><?=$c[‘customer_date’]?></td></tr>
</table>
</div>
<div id=”clear_left”></div>
</div>