CSS affect other elements on hover

http://stackoverflow.com/questions/4502633/css-how-to-affect-other-elements-when-a-div-is-hovered

HTML

<div id="colors"> colors
    <div>red</div>    
    <div>green</div>    
    <div>blue</div>
</div>    

<br />

<div id="currency">currency</div>        
<div>eur</div>
<div>usd</div>

CSS

/* Afectar o filho */
#colors:hover > div:first-child {
    background: red;
}

#colors:hover > div:nth-child(2) {
    background: green;
}
#submenu_img:hover > div.banner-submenu:nth-child(2)

#colors:hover > div:last-child {
    background: blue;
}



/* Afectar o próximo elemento */
#currency:hover + div{
    background: yellow;
}