Forum:Table design with CSS

Is it possible to define different styles for each table column without adding every cell to a style class?

Example: An easy solution is and defining the colors in the used style classes.

But is it possible to define this table design using only a single class for the but it doesn't work.