PDA

View Full Version : CSS & text colour help plz..


djshongo
05-20-2009, 05:16 PM
Hi,
Looking for some help!

Im looking to control the colour of text in a sentence, I want the first half of the sentance to be BLACK, and the second half GREY.

To explain what i'm doing, I will have a question.. eg:
'What is your name' ...Johnny

So, id like the 'What is your name' to be BLACK
and the '...Johnny' to be GREY.

I will have about 30 questions and answers on the page and it would be handy to be able to control all the 'questions' and 'answers' text..

..if this makes sense?! lol
Maybe there is an easier way? I have all the text written on my page already tho! Doh!!

thanks in advance
johnny

coloeagle
05-20-2009, 06:45 PM
You can do this. You will need to enclose the second half of the sentence inside a span tag. You can then set the span to have a Grey color or create a Grey color class and assign this class to the span tag.

djshongo
05-20-2009, 07:29 PM
thanks!!

will look at span tags now :))