title: With CSS, can I change the background to multiple div tags when I hover over one?
body: <p>I'm trying to use javascript as little as possible on this project.  I would like to create a a voting thing on my site, with stars.  </p>
  
  <p>I will have 5 stars, sort of faded out, and when the user rolls over the first, the first will light up, and then they roll over the second, both the second and first light up, until they reach the fifth star, when all stars will be lit.</p>
  
  <p>I tried surrounding them with div tags, so that they would be grouped, but it made all five stars light up every time.</p>
  
  <p>I tried adjusting the z-index of the groups, so that I could hover over the first stars first, but that didn't work either.</p>
  
  <p>Perhaps this can't be done in CSS, but I feel like there should be some shortcut to it.  Let me know if you can think of anything. </p>
  
  <p>Here's the JSFiddle that I'm working off of: <a href="http://jsfiddle.net/bozdoz/LL9pH/" rel="nofollow">Working sample</a></p>
  
  <p><b>HTML</b></p>
  
  <pre><code>&lt;div class="clearfix" id="stars"&gt;
      &lt;div class="darn"&gt;Oh no!&lt;/div&gt;
      &lt;div class="star off"&gt;&lt;/div&gt;
      &lt;div class="star off"&gt;&lt;/div&gt;
      &lt;div class="star off"&gt;&lt;/div&gt;
      &lt;div class="star off"&gt;&lt;/div&gt;
      &lt;div class="star off"&gt;&lt;/div&gt;
      &lt;div class="brilliant"&gt;Thanks!&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><b>CSS</b></p>
  
  <pre><code>.clearfix div {
      float:left;
      position:relative;
  }
  
  #stars {
      width:450px;
      margin:0 auto;
  }
  
  .star {
      width:64px;
      height:64px;
      background:url(http://upload.wikimedia.org/wikipedia/commons/thumb/d/d8/Full_Star_Blue.svg/64px-Full_Star_Blue.svg.png) no-repeat;
   }
  
  .star:hover {
      background:url(https://upload.wikimedia.org/wikipedia/commons/thumb/e/e5/Full_Star_Yellow.svg/64px-Full_Star_Yellow.svg.png) no-repeat;
      cursor:pointer;
  }
  
  .group {
      position:absolute
  }
  </code></pre>