W3C home > Mailing lists > Public > www-style@w3.org > August 2006

idea about pseudo-selectors

From: Ming Teo <ming@staff.highway1.com.au>
Date: Tue, 08 Aug 2006 18:17:43 +0800
Message-ID: <44D864C7.7010805@staff.highway1.com.au>
To: www-style@w3.org
I had an idea for something like this... from what I see in the CSS3 
working draft, there's |:nth-child| and :nth-child-of-type etc, but how 
would one, say cover odds and evens?

A lot of people, esp. in tabular data, want to have every second row 
coloured a different way. The way we do it is assigning a class to every 
second row. Or using javascript/some other scripting method to do it?

What about an |:odd-child|, |:odd-child-of-type|, |:even-child|, and 
|:even-child-of-type|?

Wouldn't those be awesome pseudo-selectors?

-- 

*Guan Ming Teo*
Web Developer

Highway 1 Internet Solutions

Highway 1 Internet Solutions
Level 2, 33 Richardson St.
WEST PERTH  WA  6005
Australia

PO Box 1910
WEST PERTH  WA  6872

P 08 9488 8999
F 08 9488 8900

http://www.highway1.com.au/
Received on Tuesday, 8 August 2006 10:18:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:46 GMT