-1
Hello I’m looking for a way to do this. I have this code below... and I want a button that changes the colors of the elements in it, type the background color, font color, track background color. It would be a change what the user himself will do, he chooses the color he wants in each element. If there is a way to do it without using java it would be good but if it is only with java even is good also because so I learn more kkk
body {
background-color: #2f45d6;
}
h1 {
background-color: #a30000;
color: #fffb00;
padding: 15px;
text-align: center;
}
<body>
<h1>ola mundo!</h1>
</body>
Your question was not clear, you want to click on the red box put a color you choose, then you want to click on the text and choose another color etc... that’s it?
– hugocsl
I wanted to do with preset colors as for example: it would have a square that is divided into 3 colors (blue, yellow and red) and when the user clicks on that square the background is blue, the yellow band and the red letter. It lasts a 3-4 squares of the same type with different colors that when clicked changes the colors of the background, the track and the letter in the colors that are in the frame. It’s like choosing a theme in an IDE for example, that instead of swapping component for component and already brings a color preset of each component in just one click
– wilian black