How to change first word color through css like 'Moodle Theme' actually i want to change the color of 'Moodle' in white and 'Theme' in orange, it is possible to make through css.I can't use here or any other tags.And no javascript please. Please help me.. Thank You Advance...
Asked
Active
Viewed 1,868 times
-5
-
`Moodle Theme`. – dfsq Feb 28 '14 at 07:06
-
http://jsfiddle.net/Gw9bH/ – JunM Feb 28 '14 at 07:07
-
Also somewhat related here - http://stackoverflow.com/questions/7440572/css-bold-first-word – JunM Feb 28 '14 at 07:10
-
Downvote for lack of research effort. – bjb568 Feb 28 '14 at 07:11
3 Answers
1
You can do it with some html and css however you have to be specific with the words.
Code:
<div style="background-color:black"><span style="color:white">Moodle </span><span style="color:orange">Theme</span></div>
Fiddle: http://jsfiddle.net/GceLV/

V31
- 7,626
- 3
- 26
- 44
1
Jsfiddle link
OR
<p class="client"><span>Client</span> Testimonial</p>
.client span{
color: #c0ff33;
}
Other Same Question Here..
Here is other Tutorial

Community
- 1
- 1

Java Curious ღ
- 3,622
- 8
- 39
- 63
0
Definitely You can do it by using any inline element like Span
HTML*
<div>
'<span class="color-white">Moodle</span> Theme'
</div>
CSS
div
{
color:orange;
background-color:#DDD;
}
.color-white
{
color:#FFF;
}

Rajiv Pingale
- 995
- 9
- 27