Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Text color

Status
Not open for further replies.

rqmedes

Programmer
Jun 22, 2002
6
AU
HI All

I need to change text color in a row of a table
but cannot use css.

I can change the background using
.bgColor =
but how do i change the text color
cannot use css in this example

thanks in advance
 
You have to use CSS:

Code:
.style.backgroundColor = 'red';

unless you want to use outdated code, like the font element.

Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 

Sorry -

"backgroundColor" should just be "color".

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top