Wednesday, March 10, 2010

Use colgroup or col to style table columns

Use the <colgroup> tag or the <col> tag to style table columns.
Note that not all attributes work for Firefox (see w3c). Alternative using CSS selectors at webmasterworld.com:

td:first-child { }
td:first-child + td { }
td:first-child + td + td { }
td:first-child + ...

No comments:

Post a Comment