HTML
CSS
I've been scratching my head at a problem
I'm trying to make it so that the color of the stress boxes change depending on the "attr_stress1" value. I've been reading forum posts on something similar and came to the conclusion that what I have written in HTML/CSS.
As I am testing through it, the value of the invisible "stressBoxInfo" is correctly updated. But for some reason, the color of the button isn't changing. I have plugged in almost exact (not adding the sheet- prefix to classes) into a blank html page and the results are as expected.
It seems, for some reason that the Subsequent-sibling combinator (~) is just not working.
I am stumped as to how to fix the issue.