471,610 Members | 1,335 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

Style the first col (all TD) using CSS?

Hello, I want to style the first column (i.e. all TD in the first col)
using CSS?

I have tried, e.g.

td:first-child { color: red; }

but not working, any suggestions?

thanks.

Sep 30 '07 #1
1 6289
howa <ho******@gmail.comwrites:
Hello, I want to style the first column (i.e. all TD in the first col)
using CSS?

I have tried, e.g.

td:first-child { color: red; }

but not working, any suggestions?
If you're highlighting it because it's a heading, mark it up as such - use
th instead of td.

Not only is that more semantically appropriate, it also makes it trivial
to make your headings red:

th { color: red; }

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Sep 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

38 posts views Thread by Ken Davies | last post: by
8 posts views Thread by TJ Walls | last post: by
39 posts views Thread by jamilur_rahman | last post: by
5 posts views Thread by Isha | last post: by
6 posts views Thread by rongchaua | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.