CharlesL CharlesL - 1 month ago 6
CSS Question

Is there a way to assign a CSS class to a column without having to assign it to each TD?

Is there a way to assign a CSS class to a column, without having to assign it to each td?

I've got a large (1000+ row table) and need to assign a class to the first column.

Answer

Just figured it out.

Use the colgroup and col tags, and assign a class to them.

Solution

Comments