Changing an element when another element is hovered with css code example Example: css hover change other element #container:hover > #cube { background-color: yellow; }