different coloured text in one line

  pcadv 18:49 11 Jan 07


I am trying to show three words, all in differnt colours but font is same. They should be in the same line.

Can anyone suggest me how to go about it?


  mco 19:45 11 Jan 07


  pcadv 22:17 11 Jan 07

Sorry. I had forgoten to add that. I am using css and html.

  LeadingMNMs 22:33 11 Jan 07

Well simply speaking, but very ugly coding ....

<span class="classThatAppliesToAll">
<span id="red">
<span id="blue">
<span id="yellow">

With associated CSS for .classThatAppliesToAll (ie. font face, size etc) and #red, #blue, #yellow to assign colours. Obviously you could also put the style info within the style tags using, for example, style="color:red".

This thread is now locked and can not be replied to.

Best phone camera 2016/2017: Galaxy S7 vs iPhone 7 vs Google Pixel vs HTC 10 Evo vs OnePlus 3T vs…

1995-2015: How technology has changed the world in 20 years

The Pantone Colour of the Year 2017 is Green

Super Mario Run preview | Hands-on first impressions of Super Mario Run: Mario's iPhone & iPad…