Easy CSS question

Associate
Joined
19 Oct 2002
Posts
206
Location
Oop north - where it's grim...
Hello all

Quick css question. I'm trying to format some text such that the text is different colors within a word - e.g. Simebaby, with the first four letters blue, and the next four orange. So in my css I've got

Code:
.logo1 {color: blue}
.logo2 {color: orange}

Which works fine - but what html tags to I put the classes in to keep the text on one line - e.g. I used <div>:

Code:
<div class="logo1">Sime</div><div class="logo2">baby</div>

But that splits the text onto two lines.

Hopefully this makes sense - I'm out of touch with my web stuff, so I'm trying to avoid using font tags etc and bring myself into the new age! :)

TIA

Si.
 
Back
Top Bottom