Change color of part of the text in a text box


#1

I only see an option to change the color of the font in the entire text book. I just want to change the color of two words for emphasis. I tried using font css but it didn’t work.


#2

Hi @Amandah86,

Welcome to the forums! It depends on where you want to change the text, but in general this should work:

TEXT
Quisque vestibulum elit a tempus tempor. <span class="inline-color">Sed pellentesque porttitor pharetra.</span> Integer semper diam a ex condimentum volutpat. Proin odio risus, tristique dictum orci at, fringilla aliquet quam.

CSS
.inline-color { color: #000000; }

Thanks,
Luca


#3

Thank you. I just want to change a couple of words within a text block. I’m looking at youtube and I don’t seem to have some of the elements that others have in there.

Can you provide that code in English? Where do I put the text I want to change color?

Is there an easier way to just change the color of a word in the text block?

Thanks again


#4

Oh lord never mind I found the advanced text editor!! Thanks!


#5

This is just a sample text, what’s important is this part:

<span class="inline-color">This text will have different color</span>

You put it somewhere inside your current text, wherever you wish to change it’s color. As far as I’m concerned there’s no easier way to do this (well, unless you have access to advanced text editor :slight_smile: ).

Thanks,
Luca