Jump to content

Words in different color?


eduard
 Share

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...