Re: [WSG] how to set table column widths with CSS

2008-01-18 Thread Keryx Web
Philippe Wittenbergh skrev: 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 I was surprised to

Re: [WSG] how to set table column widths with CSS

2008-01-11 Thread Rochester oliveira
but IE doesn't render this pseudo-class 2008/1/11, Philippe Wittenbergh [EMAIL PROTECTED]: On Jan 11, 2008, at 2:59 PM, Katrina wrote: Gday, Can someone please remind me how to set the width on a simple table column without suffering classitis? Doctype: HTML4.01 strict. Must

Re: [WSG] how to set table column widths with CSS

2008-01-11 Thread Alastair Campbell
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 However, a combination of col HTML

Re: [WSG] how to set table column widths with CSS

2008-01-11 Thread Max A. Shpack
It won't work in IE6 and below, it doesn't supports such selectors unfortunately. Max. 2008/1/11, Alastair Campbell [EMAIL PROTECTED]: 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

Re: [WSG] how to set table column widths with CSS

2008-01-11 Thread Robert O'Rourke
Katrina wrote: Gday, Can someone please remind me how to set the width on a simple table column without suffering classitis? Doctype: HTML4.01 strict. Must validate. Thanks! Kat Hi Kat, I tend to mark up my tables using something like this: table thead tr th

Re: [WSG] how to set table column widths with CSS

2008-01-11 Thread Philippe Wittenbergh
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:

[WSG] how to set table column widths with CSS

2008-01-10 Thread Katrina
Gday, Can someone please remind me how to set the width on a simple table column without suffering classitis? Doctype: HTML4.01 strict. Must validate. Thanks! Kat *** List Guidelines:

Re: [WSG] how to set table column widths with CSS

2008-01-10 Thread Alexey Ten
- using style attribute on appropriate cell or - using col element with width attribute, though it's not CSS. On Jan 11, 2008 8:59 AM, Katrina [EMAIL PROTECTED] wrote: Gday, Can someone please remind me how to set the width on a simple table column without suffering classitis?

Re: [WSG] how to set table column widths with CSS

2008-01-10 Thread Philippe Wittenbergh
On Jan 11, 2008, at 2:59 PM, Katrina wrote: Gday, Can someone please remind me how to set the width on a simple table column without suffering classitis? Doctype: HTML4.01 strict. Must validate. What is wrong with classes ? else: col:first-child {width:10em;} col:first-child+col