Jump to content

Words in different color?


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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...