Jump to content

Words in different color?


eduard

Recommended Posts

Have you tried wrapping the words in a span with a class and reading the CSS tutorial?
I don´t understand this reply, because I already have a span and a class e. g. .webdesign span?
Link to comment
Share on other sites

CSS
span.red{color:red}

HTML

<span class="red">some text...</span>

I understand the idea! However, the question is: how do I integrate the code in my existing code?<p class="languages">  spanish german dutch<span>inglés alemán holandés</span></p><br>
Link to comment
Share on other sites

If you are trying to have a different colour for each language then you could create a class for each language with a different colour and span the relevant languages with the class, if they are mixed together then this is more complicated.
I don´t understand this reply?Do I have to add more <span> to my existing code? If so, where?
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...