table question

They have: 117 posts

Joined: Feb 2000

Hi,

I know this is probably easy, but I can't seem to figure out how to do it. Is there an easy way to set up a table such that all the text within the table is a certain color? I can do it if I define each tag with that color, but I'm looking for a simple way to apply a text color to the entire table. Thanks.

Bob

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

You'll have to use stylesheets - it won't work in older browsers but that shouldn't be a problem since almost no one uses them anymore. Just put this in your header:

If you've got more than one table on your page, though, and you just want to apply that colour to one of them, you'll have to define a class:

Then your table tag will look like this:

They have: 117 posts

Joined: Feb 2000

Megan Jack,

Thanks for your response. In fact, these are two of the things that I tried and could not get it to work. Now I understand why. It works fine in IE, but does not work with NS. Any idea how to do the same thing so it will work with both IE and NS? I HATE browser incompatibilities! Thanks again.

Bob

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

try this:
TD {color: aaaaaa}

They have: 117 posts

Joined: Feb 2000

Mark,

That did the trick! Thanks!

Bob

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.