File: stars.css

Recommend this page to a friend!
  Classes of Sudhir Chauhan  >  Star rating  >  stars.css  >  Download  
File: stars.css
Role: Auxiliary data
Content type: text/plain
Description: stylesheet used to create stars
Class: Star rating
Update votes and display rated content with stars
Author: By
Last change:
Date: 12 years ago
Size: 1,377 bytes


Class file image Download
	body {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 12px;

a { outline: none;}

	/*             styles for the unit rater                */	
		margin: 0px;
		width: 100px;
		height: 20px;
		position: relative;
		background: url('star_rating.gif') top left repeat-x;		
	.unit-rating li{
	    text-indent: -90000px;
		float: left;
		/* */
	.unit-rating li a{
		height: 20px;
		text-decoration: none;
		text-indent: -9000px;
		z-index: 20;
		position: absolute;
		padding: 0px;
	.unit-rating li a:hover{
		background: url('star_rating.gif') left center;
		z-index: 2;
		left: 0px;
	.unit-rating a.r1-unit{left: 0px;}
	.unit-rating a.r1-unit:hover{width:20px;}
	.unit-rating a.r2-unit{left:20px;}
	.unit-rating a.r2-unit:hover{width: 40px;}
	.unit-rating a.r3-unit{left: 40px;}
	.unit-rating a.r3-unit:hover{width: 60px;}
	.unit-rating a.r4-unit{left: 60px;}	
	.unit-rating a.r4-unit:hover{width: 80px;}
	.unit-rating a.r5-unit{left: 80px;}
	.unit-rating a.r5-unit:hover{width: 100px;}
	.unit-rating li.current-rating{
		background: url('star_rating.gif') left bottom;
		position: absolute;
		height: 20px;
		display: block;
		text-indent: -9000px;
		z-index: 1;

For more information send a message to info at phpclasses dot org.