chaning css value of a div on hover over another div in css code example Example: css hover change other element #container:hover > #cube { background-color: yellow; }