|
-
May 7th, 2002, 02:23 PM
#1
Thread Starter
Black Cat
Advanced CSS Tricks
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;
}
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
May 7th, 2002, 04:26 PM
#2
Frenzied Member
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)?
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 7th, 2002, 04:52 PM
#3
Frenzied Member
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.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|