ratingStar.css

/* Ratings Stars (with as little code as possible) */ .rating { unicode-bidi: bidi-override; direction: rtl; text-align: center; } .rating > span { display: inline-block; position: relative; width: 1.1em; } .rating > span:hover, .rating > span:hover ~ span { color: transparent; } .rating > span:hover:before, .rating > span:hover ~ span:before { content: "\2605"; position: absolute; left: 0; color: gold; } body { padding: 100px; }
Ratings Stars

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.