Site logo

Archived topic

How to attribute different font colors to words

4 replies · Started by muralidharan on April 4, 2017

Viewing posts 1–5 of 5

Hi

Does anyone know the way around to get different color to words in a sentence. Like Black, blue, black and so on. In a paragraph , H1 , H2

thanks
murali

thanks leo and tom,

I do find that you can tweek the colors using the color palette in paragraphs only, what about increasing the font size in paragraph that function does not exist?

also can we do similar thing in Headline, or page title?

best

Couple ways to accomplish this:
- You can style straight into HTML. This page gives lots of good examples:
https://www.w3schools.com/html/html_styles.asp

- If you don't want to do this repetitively, then you can wrap it like this:
<span class="special-color">My Special Color Text</span>

Then add CSS:

.special-color {
    color: #000000;
    font-size: 20px;
}
This archived topic is closed to new replies.