- From: Jonas Sicking <sicking@bigfoot.com>
- Date: Fri, 2 Mar 2001 19:18:37 +0100
- To: "Daniel Glazman" <glazman@netscape.com>, <www-style@w3.org>
Daniel Glazman wrote:
> Jonas Sicking wrote:
>
> > I agree my proposal is a bit more complicated but it also adds much
extra
> > functionallity, such as rules for "three lines white, three lines
gray..."
>
> tr:nth-child(6n+1), tr:nth-child(6n+2), tr:nth-child(6n+3)
> { background-color : silver }
> tr:nth-child(6n+4), tr:nth-child(6n+5), tr:nth-child(6n)
> { background-color : white}
which will become very long when you try to do something like:
table.stocks > tr:nth-child(10n+1..5) { background-color: silver; }
table.stocks > tr:nth-child(10n+6..10) { background-color: white; }
/ Jonas Sicking
Received on Friday, 2 March 2001 13:17:55 UTC