tags:

views:

41

answers:

1

Hi, My problem is simple. I want different styles on each column of a table. I've read that you could do that by using <colgroup> or <col> but i had no luck I have an exemple here and nothing seems to change.

am i doing something wrong? will this work on xhtml?

Thxs for your help :)

BTW: i know i could add a "class" attribute on each <td> but that seems kinda weak

+3  A: 

That's correct. Some browsers don't implement colgroup correctly or completely. Don't use it. Instead, create CSS classes and assign them to each td. Yes, it sucks.

Aaron Digulla
+1 for "Yes, it sucks."
BoltClock
thxs! it seems that html5 will make colgroup work.. but until then, i'll use classes or the nth-child
pleasedontbelong