Skip to content

Tag: colors

Randomize color pairs onclick (CSS, JavaScript)

There is a button on my website that should change the page’s background color and the headline text color onclick (simultaneously). What makes it more complex is that the possible color pairs (BG + headline) should be pre-determined, but the pairs themself should be randomized, so each time you click t…

Make empty table cells transparent

The title is pretty much self-explanatory. I have also tried the answer from here without any success as you might guess: “How to make background of table cell transparent” Here is my code : Suppose to be a very easy task but unfortunately, I’m here… 🙂 Answer You should not set a backg…

ApexCharts Stacked Columns specific color for series

I Want to Display Data in Apex Charts Stacked Column , with specific color for each series (change the color to Red and Green, for Product A and Product B). Default Apex Charts choose the color. I tried to change the color by add the colors option and set plotOptions,bar,distributed: true. but then the hole c…