This is really cool - you can set the style of the first cell in each row without messing with classes and ids- too bad it doesn't work in IE6 or Opera6. Sigh.
Code:tr > td:first-child {
color: green;
background: black;
}
Printable View
This is really cool - you can set the style of the first cell in each row without messing with classes and ids- too bad it doesn't work in IE6 or Opera6. Sigh.
Code:tr > td:first-child {
color: green;
background: black;
}
What I hate most about Opera right now is that the CSS pages at the W3C don't load correctly.
Can you use first-child in other places? Maybe first TR, or first P (or simply first DIV or SPAN)?
I found that psuedo class when I was looking up something for the uneducated in another thread. You can use first-child on just about any tag, though it probably works best as you've described.