Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

JavaScript: In a cell: change background and font color

Posted on 2003-03-10
3
Medium Priority
?
1,062 Views
Last Modified: 2013-12-03
easy question.. should be.. wracking my brain cause I should know this..
I have a table cell held on oRow.. to change the background color of the cell I use:

oRow.style.backgroundColor='C6E8F2';

which works just fine.. but how do I change the fontcolor as well? I've tried style.color, style.font-color and various other expected values, but nothing works..

thanks
-Paul
0
Comment
Question by:PMH4514
3 Comments
 

Author Comment

by:PMH4514
ID: 8106160
I was right..
oRow.style.color = '000000';
 
works..
I had an anchor tag on the text which was keeping it from changing. I've been looking at this screen too long.

this question is self-answered
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 8106867
Ok, then please let close this question by posting a zero points request in this topic area:
http://www.experts-exchange.com/Community_Support/

Put a link to this question to be closed and to get points refunded.

Cheers,
Zvonko

0
 

Accepted Solution

by:
Chmod earned 0 total points
ID: 8110169
Points refunded & question saved to PAQ

Chmod
Community Support Moderator @Experts Exchange
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question