colgroup vs. td+td vs. class

liunx

Guest
i m trying to manipulate a column in a dynamic built table.
1- seems that colgroup works only in IE (and bg color in FF).
2- so i switched to the td+td+td method but it works only in FF.
3- then tried a combination: a class in the col tag and td+td:
.buju, td+td{color:green;}
<col class="buju">
but IE wouldnt accept it.

my conclusin was: best put a class on all TDs.

1- could someone explain me what colgroup can/cant do and what are the diefferences between browsers?
2- am i right? only in FF?
3- why isnt this working?

so... whats the best way to manipulate columns that suits both FF and IE ?1 - could someone explain me what colgroup can/cant do and what are the diefferences between browsers?
The following four CSS properties should work in a col or colgroup in all browsers:

border, background, width, visibility

Support for all other properties depends on the browser.
2- am i right? only in FF?
Nowadays it's rather that every browser except IE < 7 supports the sibling (+) selector, really.
3- why isnt this working?
Bug in IE's CSS parser. This should work:
.buju {color:green;}
td+td {color:green;}well... that sucks!
kuz the colgroup is a very powerfull feature.

now i have to write a class for all those TDs in that column
 
Back
Top