affect other element when one is hover css code example Example: css hover affect other item #container:hover ~ #cube { background-color: yellow; }