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

RE: Styling table columns--why so limited?

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 13 Apr 2004 18:07:33 +0000 (UTC)
To: Matthew.van.Eerde@hbinc.com
Cc: tantek@cs.stanford.edu, www-style@w3.org
Message-ID: <Pine.LNX.4.58.0404131758370.30867@dhalsim.dreamhost.com>

On Mon, 12 Apr 2004 Matthew.van.Eerde@hbinc.com wrote:
>
> What if you put it to them like "OK, you can have a :column pseudo-class
> - but it will only key on absolute position, take it or leave it"?

Probably the same way as they would react to "ok, you can style columns,
but only by selecting the cells in that column yourself", or, "only using
td:nth-child" or similar...


> I can see how a <col class="price"> would be nice, but it's the straw
> that breaks the model's back.

I was thinking earlier that maybe using the // combinator i once proposed
(search for /usemap/ in the archives) might do this:

   col.prices // td { text-align; right; }

...where "//" means "related to", so a "cell" is "related to" its column,
column group, row, and row group, a form control is related to its <label>
and <form> elements, etc.

Of course this would have to be better defined... and implementing it
could be interesting...

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
U+1047E                                         /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 13 April 2004 14:07:35 GMT

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