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

05-20-2009, 06:16 PM
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

05-20-2009, 07: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.

05-20-2009, 08:29 PM

will look at span tags now :))