By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,487 Members | 1,085 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,487 IT Pros & Developers. It's quick & easy.

different colors for specific words

P: 1
Hi, is it possible to have to match a specific word and change the color of that word?

What I need to do, is for a content, the color needs to be black. But if a specific word is matched in the content, it's color must change.

Here's an example:

"Alison Krauss is an American bluegrass/country singer and fiddle player. Krauss signed with Rounder Records in 1985 and released her first solo album at age sixteen in 1987. Krauss was invited to join the band with which she still performs, Alison Krauss & Union Station, and later released her first album with them as a group in 1989."

Now I would like it that whenever the word 'Krauss' is matched, it's color should be red.

Thanx in advance
Feb 7 '07 #1
Share this Question
Share on Google+
1 Reply

P: 254
font { text-color: red }

<font>Specific words</font> bla bla bla , bla bla bla <font>Specific words</font> bla bla bla.

is that what you want?
Feb 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.