How to color one letter in a word or heading | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to color one letter in a word or heading

make each letter of different color in single world

12th Sep 2018, 6:41 AM
Prasoon Kushwaha
Prasoon Kushwaha - avatar
5 Answers
+ 4
You have to set each letters an ID. And style it on CSS.
12th Sep 2018, 7:11 AM
Email Not Activated
+ 4
Jay Matthews That's really a looong code. Setting its ID each and do it with CSS is much shorter. :)
12th Sep 2018, 12:17 PM
Email Not Activated
+ 3
Use -webkit-background-clip: text; -webkit-text-fill-color: transparent; to assign linear gradient color to letters only https://code.sololearn.com/WwgD3sHiuhxy/?ref=app
12th Sep 2018, 10:34 AM
Calviղ
Calviղ - avatar
+ 1
https://code.sololearn.com/WhrJ8d51q65G/?ref=app
12th Sep 2018, 12:57 PM
Prasoon Kushwaha
Prasoon Kushwaha - avatar
0
no ouput???
12th Sep 2018, 10:47 AM
Prasoon Kushwaha
Prasoon Kushwaha - avatar