title: How to affect other elements when one element is hovered
body: <p>What I want to do is when a certain <code>div</code> is hovered, it'd affect the properties of another <code>div</code>.</p>
  <p>For example, in <a href="http://jsfiddle.net/Trufa/9AbvE/7/" rel="noreferrer">this JSFiddle demo</a>, when you hover over <code>#cube</code> it changes the <code>background-color</code> but what I want is that when I hover over <code>#container</code>, <code>#cube</code>is affected.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>div {
    outline: 1px solid red;
  }
  
  #container {
    width: 200px;
    height: 30px;
  }
  
  #cube {
    width: 30px;
    height: 100%;
    background-color: red;
  }
  
  #cube:hover {
    width: 30px;
    height: 100%;
    background-color: blue;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="container"&gt;
    &lt;div id="cube"&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>