.rating {
    cursor: pointer;
    margin: 2px;
    clear: both;
    display: block;
}
.rating:after {
    content: '.';
    display: block;
    height: 0;
    width: 0;
    clear: both;
    visibility: hidden;
}
.cancel,
.star {
    float: left;
    width: 20px;
    height: 19px;
    overflow: hidden;
    text-indent: -999em;
    cursor: pointer;
}
.star-left,
.star-right {
  width: 8px
}
/*.cancel,
.cancel a {background: url(images/delete.gif) no-repeat 0 -16px;}
*/
.star,
.star a, .star span {background: url(images/stars20.png) no-repeat 0 0px;}
.star-left,
.star-left a {background: url(images/star-left.gif) no-repeat 0 0px;}
.star-right,
.star-right a {background: url(images/star-right.gif) no-repeat 0 0px;}
    
.cancel a,
.star a, .star span {
    display: block;
    width: 100%;
    height: 100%;
    background-position: 0 0px;
}

div.rating div.on a, div.rating div.on span {
    background-position: 0 -40px;
}
div.rating div.hover a,
div.rating div a:hover {
    background-position: 0 -20px;
}
