title: Aligning a Star Rating to the center of the Div
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>div.stars {
    display: inline-block;
  }
  
  input.star { display: none; }
  
  label.star {
    float: right;
    padding: 10px;
    font-size: 36px;
    color: #444;
    transition: all .2s;
  }
  
  input.star:checked ~ label.star:before {
    content: '\f005';
    color: #FD4;
    transition: all .25s;
  }
  
  input.star-5:checked ~ label.star:before {
    color: #FE7;
    text-shadow: 0 0 20px #952;
  }
  
  input.star-1:checked ~ label.star:before { color: #F62; }
  
  label.star:hover { transform: rotate(-15deg) scale(1.3); }
  
  label.star:before {
    content: '\f006';
    font-family: FontAwesome;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="stars"&gt;
    &lt;form action=""&gt;
      &lt;input class="star star-5" id="star-5" type="radio" name="star"/&gt;
      &lt;label class="star star-5" for="star-5"&gt;&lt;/label&gt;
      &lt;input class="star star-4" id="star-4" type="radio" name="star"/&gt;
      &lt;label class="star star-4" for="star-4"&gt;&lt;/label&gt;
      &lt;input class="star star-3" id="star-3" type="radio" name="star"/&gt;
      &lt;label class="star star-3" for="star-3"&gt;&lt;/label&gt;
      &lt;input class="star star-2" id="star-2" type="radio" name="star"/&gt;
      &lt;label class="star star-2" for="star-2"&gt;&lt;/label&gt;
      &lt;input class="star star-1" id="star-1" type="radio" name="star"/&gt;
      &lt;label class="star star-1" for="star-1"&gt;&lt;/label&gt;
    &lt;/form&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How do i align div<code>stars</code> to the center of the <code>div</code> without ruining the <code>hover</code> effect, I'm tried changing the <code>float</code> but it either go right or left, or swap the <code>hover</code> effect, I want to keep it at the center of the <code>div</code> dynamically without moving a bit right or left.</p>