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
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
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
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
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
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:
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:
- 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?
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