W3C home > Mailing lists > Public > www-style@w3.org > November 2004

[proposal] Table cell selectors.

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sat, 13 Nov 2004 18:55:53 -0800
Message-ID: <009301c4c9f5$74c1e090$0c01a8c0@TERRA>
To: <www-style@w3.org>

To intoduce:

Table cell selector:

E[@column=number @row=number]

Matches any table cell located at column number and row number. Where number 
is a decimal number or "odd" or "even" or "last" values. Columns and rows 
numbers start from number 1.


TD[@column=1]  /* matches all cells in first column  in all tables. */

#mytable TD[@row=even] /* matches all cells in even rows in all table with 
id "mytable". */
#mytable TD[@row=odd] /* matches all cells in odd rows in all table with id 
"mytable". */
I think that index selector for any other elements would be also useful.
Where number is a decimal number or "odd" or "even" or "last" values. 
Numbers of element indexes also start from 1.

These selectors are olready implemented in v.3. of our HTMLayout and people 
found them extremely useful.

Andrew Fedoniouk.
Received on Sunday, 14 November 2004 02:55:58 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:16 UTC