rapid
12-31-2004, 08:13 PM
is there a css technique for coloring a word so that the first half is one color and the last half is a different color?
obviously this can be done with font tags:
<FONT COLOR="#00f">tele</FONT><FONT COLOR="#f00">phone</FONT>
but as close as i can get with my limited css knowledge is:
h1.one {color:#f00;}
h1.two {color:#00f;}
<h1 class="one">tele</h1><h1 class="two">phone</h1>
but this displays the text like this:
tele
phone
is there a way to get the results i want with css?
obviously this can be done with font tags:
<FONT COLOR="#00f">tele</FONT><FONT COLOR="#f00">phone</FONT>
but as close as i can get with my limited css knowledge is:
h1.one {color:#f00;}
h1.two {color:#00f;}
<h1 class="one">tele</h1><h1 class="two">phone</h1>
but this displays the text like this:
tele
phone
is there a way to get the results i want with css?