On Jan 11, 2008, at 11:51 PM, Alastair Campbell wrote:

On Jan 11, 2008 7:29 AM, Philippe Wittenbergh <[EMAIL PROTECTED]> wrote:
col:first-child {width:10em;}
col:first-child+col {width: 5em;}

From memory, I don't think col has children as such, it's quite a headache:
https://bugzilla.mozilla.org/show_bug.cgi?id=915

I'm styling the <col> element, not a descendant or child of col (there are none, anyway).
(col:first-child applies to the first column, child of colgroup)

width applies perfectly to the <col> element.
<http://www.w3.org/TR/CSS21/tables.html#columns>

====
To anyone who mentioned that IE (6) doesn't support these selectors, I **know**. And that was also the point of my post. The OP wanted a solution without the use of classes (or a minimal use of them).

She could attach  class to each <col> element, eventually.

Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>





*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to