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