![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
15/01/2013, 15:55
|
![Avatar de pouparo](http://static.forosdelweb.com/customavatars/avatar475378_1.gif) | | | Fecha de Ingreso: septiembre-2012
Mensajes: 116
Antigüedad: 12 años, 5 meses Puntos: 0 | |
Respuesta: problema con color de fondo para una celda de una tabla html:
<div id="cuerpo"
<table>
<tr><th>Nombre</th><th>Apellido</th></tr>
<tr><td>datos 1</td><td>datos 1</td></tr>
<tr><td class="nota">datos 2</td><td>datos 2</td</tr>
</table>
</div>
css:
#cuerpo table{
border-style:solid;
border-width:1px;
border-color:black;
background:#045FB4;
color:black;
text-align:center;
border-collapse:separate;
border-spacing:5px;
}
#cuerpo tr{
border-style:solid;
border-width:1px;
border-color:black;
background:white ;
}
#cuerpo td{
width:100px;
height:80px;
border-style:solid;
border-width:1px;
border-color:black;
background:white ;
overflow:hidden;
}
#cuerpo th{
width:100px;
height:80px;
border-style:solid;
border-width:1px;
border-color:black;
background-color:#F79F81;
overflow:hidden;
}
.nota{
background-color:#ECC1C1;
font-weight:bold;
} |