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