css hover change property of another element code example Example: css hover affect other item #container:hover ~ #cube { background-color: yellow; }