RE: Styling table columns--why so limited?

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 UTC