css change background color of another element on hover code example Example: css hover change other element #container:hover > #cube { background-color: yellow; }