table question
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 posted this at 14:09 — 24th January 2001.
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:
Megan
Connect with us on Facebook!
Bob posted this at 18:47 — 24th January 2001.
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 posted this at 07:40 — 25th January 2001.
He has: 4,048 posts
Joined: Aug 2000
try this:
TD {color: aaaaaa}
Bob posted this at 15:22 — 25th January 2001.
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.