Well, my problem is this:
I have five buttons, in horizontal order. Each has a specific color in the hover. When you place your mouse over any one of them, all should assume the color that the selected one has .
I successfully used this effect on the first button, since the others changed color; when I applied the code to the others, only the front (right) buttons changed color, and I can not make the previous button change.
To demonstrate, I will simulate the third button, I will call "box3". I'm trying the following:
box3:hover ~ box1 {
background-color:red;
}
box3:hover ~ box2 {
background-color:red;
}
^ the two above are the ones left and do not change color
box3:hover ~ box4 {
background-color:red;
}
box3:hover ~ box5 {
background-color:red;
}
I have tried to change ~ by +, > and by empty space as well. Thanks!