change another element when hover on css code example
Example 1: css hover affect other item
#container:hover ~ #cube { background-color: yellow; }
Example 2: css hover change other element
#container:hover > #cube { background-color: yellow; }
#container:hover ~ #cube { background-color: yellow; }
#container:hover > #cube { background-color: yellow; }