D
Derek Clarkson
Hi all,
I have the following css file:
tr td:first-child {text-align:left;}
..BTCategory {background-color:#99ff99;}
In my html file I have
<table>
<tr>
<td class="BTCategory"> ....</td>
....
I would have thought that this would have worked creating a table with the
first cell having the specified colour and being left justified. But
instead the background colour is not applied. Can anyone explain why this
is not working ?
I thought it would because whilst both style declarations are applicable to
the cell, they do not clash over the attributes they are setting.
cio
Derek.
I have the following css file:
tr td:first-child {text-align:left;}
..BTCategory {background-color:#99ff99;}
In my html file I have
<table>
<tr>
<td class="BTCategory"> ....</td>
....
I would have thought that this would have worked creating a table with the
first cell having the specified colour and being left justified. But
instead the background colour is not applied. Can anyone explain why this
is not working ?
I thought it would because whilst both style declarations are applicable to
the cell, they do not clash over the attributes they are setting.
cio
Derek.