css hover over class does effect to other class code example Example: css affect other elements on hover #container:hover ~ #cube { background-color: yellow; }