Hello all,

I just published the results of my research into table columns and CSS:

http://www.quirksmode.org/css/columns.html

One result took me totally by surprise, and I hope someone on the list
can explain it to me. In my tests I use a <col> tag that spans two
columns:

<col span="2" style="background-color: #07B133; color: #ffffff;
        width: 10em" />
        
Before I did this test, I assumed that the width declaration would
apply to the entire col, i.e. to two columns of table cells.

However, in a remarkable show of unanimity all tested browsers (IE 5.5
and 7 Windows, IE 5.2 Mac, Firefox 1.5, Opera 9, Safari 1.3.2 and iCab
3.0) apply the 10em width to all cells separately, so that the total
width of the two-cell column becomes 20em + cellspacing.

I went through the specs (CSS:
http://www.w3.org/TR/CSS21/tables.html#q4; HTML:
http://www.w3.org/TR/html4/struct/tables.html#h-11.2.4.2) and could
not find anything that indicates that such a width should be applied
to all cells separately; but maybe I don't understand them well
enough.

Can anyone enlighten me? Are all browsers buggy, or is my
interpretation wrong? If the latter, why?

Thanks,
-- 
-------------------------------------------------------------------
ppk, freelance web developer
http://www.quirksmode.org/
------------------------------------------------------------------
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to