Any idea why when I have a table such as this:
<table>
<tr>
<td>
Hello
</td>
</tr>
<table>
and CSS like the following:
table > tr > td
{
color: yellow;
background-color: red;
}
it doesn't select anything. Now correct me if I'm wrong, but td is a child of tr which is a child of table, and the previous code doesn't make the background red or the text yellow. It doesn't work in any browser that supports child selectors.
<table>
<tr>
<td>
Hello
</td>
</tr>
<table>
and CSS like the following:
table > tr > td
{
color: yellow;
background-color: red;
}
it doesn't select anything. Now correct me if I'm wrong, but td is a child of tr which is a child of table, and the previous code doesn't make the background red or the text yellow. It doesn't work in any browser that supports child selectors.