js is a lightweight jQuery color plugin that randomly generates different colors for coloring your html containers like buttons, tags, navigation, and more.jQuery Plugin For Random Background Color - randomBG. To achieve this you need to loop through the .elements, choose a random colour from the array then set colour on that element. The issue with your code was in the final part, as you were providing a selector which retrieved all the .elements to perform the css() call on And this will still use the same random color for every div. Youre definitely along the right lines, but you can simplify your loop and use .each() function to iterate over all of the (.content-block) elements on your page. Youre alos only setting the random colour once To use randomColor on the server with node.js, install randomColor from npm then call the scriptAdd a feature to return random colors close to a provided hex. returns a character surrounded by a set of spans with a random background- color rgb value function spanify(char) var openspanThe objective of the JS is to color each letter on the page randomly, so I would like to remove that glitch, although it is not critical as the objective is still completed. Given this function, I want to replace the color with a Random Color generator.TWTRLogInButton (Twitter Login Button) set title causes overlapping text.