Previous Message
Next Message

Re: [css-d] Styling the third column of a table

Sent by Lasse R. Nielsen on 30 January 2003 20:08


Francois Gagnon wrote:

> It worked !! Well mostly :)
> Colgroup don't seem to work with Opera 7 but when I add the td+td+td rule it
> work.
> Do anyone know why colgroup is not working with recent browser ? It is part
> of the 4.01 spec from what I've found.

I would use the col-tag to represent the column, colgroup is merely
for grouping columns (like thead, tbody and tfoot for rows).

It is not very well supported yet, though, and you can only put four
specific CSS-properties on a column, not all kindes of styles.
The four are: border, background, width, and visiblity:collapse
(special for table columns).

<URL:http://www.w3.org/TR/CSS2/tables.html#q4>

A test of selectors for different table parts, which fails in anything
but Opera 7: <URL:http://www.infimum.dk/privat/tablelayersCSS.html>

(Oddly, neither Mozilla nor IE6 understand inline styling of tbody.
Compare the above link to one, which uses inline styles instead of
embedded: <URL:http://www.infimum.dk/privat/tablelayersCSS.html>)

/L
Previous Message
Next Message

Message thread:

Possibly related: