answersLogoWhite

0

This cannot be done using CSS.

However, you can change the font color of the first letter of a paragraph in CSS, like this:

p:first-letter {

color:(color);

}

Alternatives:

span {

color: #XXXXXX; /* Hex Color */

}

Then: The "t" will have a color and so will this one.

Bad thing with this is you may be using the span tags for other things. Then you may want to use a class:

span.first_letter {

color: #XXXXXX; /* Hex Color */

}

Then: The "t" will have a color and so will this one.

You can carry either method out for every first letter. There are some free online text generators that generate Rainbow Text.

User Avatar

Wiki User

15y ago

What else can I help you with?