-5

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...

mahekdhar
  • 15
  • 4

3 Answers3

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&nbsp;</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;
}

http://jsfiddle.net/BLWxe/

Rajiv Pingale
  • 995
  • 9
  • 27