applying hover effect of one element to other code example Example: css affect other elements on hover #container:hover ~ #cube { background-color: yellow; }