Hello all,
I have a table made in php that has a row which the table is ordered by, and that row has a different color background. Here are the examples of the table and my CSS:
---Table---
<td>
entry 1
</td>
<td bgcolor="#ffffff">
entry 2
</td>
---CSS---
td {
background-color: #eeeeee ;
text-align: center ;
color: black ;
}
So the problem is that the backgroud color of entry 1 and 2 are both #eeeeee. From my impression the "cascade" is that of browser default, external style sheet, internal style sheet, then the code itself (this being the top of the heirarchy). Does anyone know why this might be happening?
To solve the problem I made a class that had just a backgroud of white (like td.white), but the example above should have worked from my understanding. I just thought we could all benefit from this if someone knows. Thanks a bucnh!
-Dave-
I have a table made in php that has a row which the table is ordered by, and that row has a different color background. Here are the examples of the table and my CSS:
---Table---
<td>
entry 1
</td>
<td bgcolor="#ffffff">
entry 2
</td>
---CSS---
td {
background-color: #eeeeee ;
text-align: center ;
color: black ;
}
So the problem is that the backgroud color of entry 1 and 2 are both #eeeeee. From my impression the "cascade" is that of browser default, external style sheet, internal style sheet, then the code itself (this being the top of the heirarchy). Does anyone know why this might be happening?
To solve the problem I made a class that had just a backgroud of white (like td.white), but the example above should have worked from my understanding. I just thought we could all benefit from this if someone knows. Thanks a bucnh!
-Dave-