W3C home > Mailing lists > Public > www-style@w3.org > December 2008

Re: [CSS2.1] col attributes: XHTML and CSS inconsistency?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 29 Dec 2008 22:01:28 -0500
Message-ID: <20081229220128.5oyma943otckw48s@webmail.mit.edu>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, Rainer ┼hlfors <rahlfors@wildcatsoftware.net>, "Tab Atkins Jr." <jackalmage@gmail.com>, mongolie2006-w3c@yahoo.fr, CSS mailiing list W3C <www-style@w3.org>

Quoting Brad Kemper <brad.kemper@gmail.com>:

>> That still won't help if you do:
>>
>> td:nth-col(2), td:nth-col(3) { display: block; }
>>
>> since at that point the td:nth-col(4) will actually be in the third  
>> column in the table.
>
> Would it?

Visually, yes.

> The styling would change what was selected?

No, of course not.

> I assumed it would refer to the column number of the markup.

That has to be the way it works, yes.  That's what I assumed as well.

> But the whole range of styling possibilities would apply to td:nth- 
> col(), if I am following this correctly. Right? That's kind of the  
> whole idea?

I'd think so, yes.

-Boris
Received on Tuesday, 30 December 2008 03:10:17 GMT

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