1//cube is directly inside the container:
2#container:hover > #cube { background-color: yellow; }
3
4//cube is next to (after containers closing tag) the container:
5#container:hover + #cube { background-color: yellow; }
6
7//If the cube is somewhere inside the container:
8#container:hover #cube { background-color: yellow; }
9
10//If the cube is a sibling of the container:
11#container:hover ~ #cube { background-color: yellow; }