southbeach
Programmer
In my external CSS file I have
The HTML looks like this
My HTML uses class="datarow0" and class="datarow1" to alternate color properties between rows. I get the right background color but not the text; the text remains white.
It is obvious that the text color property is that which I've set on the body tag definition. I thought that this could be overwritten if I used classes ... The text color is what ever I set the body tag to.
Why is this and how can I fix it?
Thank you all for your assistance!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
Code:
body,td,th {
color: #FFF;
}
body {
background-color: #25241e;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
font-family: 'Arial';
font-size:90%;
}
.datarow0 {
color: #000;
cursor: default;
}
.datarow1 {
color: #FFF;
background-color: #333;
}
.dataheading
{
font-size: small;
font-weight: bolder;
text-transform: uppercase;
background-color:#666666;
}
Code:
<table class="datagrid" boder="0">
<tr class="dataheading">
<td>Name</td>
<td>Phone</td>
</tr>
<tr class="datarow0">
<td>John Smith</td>
<td>(555) 111-2222</td>
</tr>
<tr class="datarow1">
<td>Larry Smith</td>
<td>(555) 222-3333</td>
</tr>
</table>
It is obvious that the text color property is that which I've set on the body tag definition. I thought that this could be overwritten if I used classes ... The text color is what ever I set the body tag to.
Why is this and how can I fix it?
Thank you all for your assistance!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.