+ 5

Creating multicoloured text in a web page

How do you create multicolored text in a webpage?

27th May 2019, 3:13 AM
Purva Jakatdar
Purva Jakatdar - avatar
5 Respostas
+ 2
You can use a background gradient and you can clip it to text..... Background: linear-gradient(your wish); Color : transparent; Background-clip : text;
28th May 2019, 4:04 PM
Thanigai Velan
Thanigai Velan - avatar
+ 6
https://stackoverflow.com/questions/38166466/multi-colored-text-using-only-css var message = "The quick brown fox."; var colors = new Array("#ff0000","#00ff00","#0000ff"); // red, green, blue for (var i = 0; i < message.length; i++) document.write("<span style=\"color:" + colors[(i % colors.length)] + ";\">" + message[i] + "</span>");
27th May 2019, 3:17 AM
AgentSmith
27th May 2019, 4:16 AM
Calviղ
Calviղ - avatar
+ 1
Плохая программа не защищено.
27th May 2019, 3:55 PM
эндер cat
эндер cat - avatar