css div on hover of other div code example Example: css hover affect other item #container:hover ~ #cube { background-color: yellow; }