Fontawesome has a great star rating css extension, which looks really awesome.
However clicking on any of the span elements wouldn't really do anything. I don't know how to hook this up with my database model. Lets say I have an integer field of 0-5 in Django. How could I set the value according to the user's selection within the template?
<span class="rating">
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
<span class="star"></span>
</span>
I seen this post, but didn't want to use a plugin with more than I needed. So, I threw this together for a small project I'm working on. You don't need bootstrap to use this.
HTML
CSS
CoffeeScript
Javascript:
Here's a better solution. The stars are based only on the numbers, so the search engine and the browser just reads 4.5 out of 5 and that's all. It uses my own custom font; no JS, no SVG, no Flash, no Canvas. It's also available as a progress bar.
DEMO/CODE
Here the code, without the microformat tags to make it simpler:
And here's the CSS that includes the font and the relevant styling:
Basically the first-letter of the rating is formatted with a character with that amount of whole stars, and the decimal with the partial stars. The outline of the stars is made out of the period, although it could be applied to any other character present. (By editing the font or just with a pseudo element)
One more interesting method. Pure CSS, keeps selected value, uses radio-buttons (cool!) and FA fonts
See demo
Taken from this post
HTML
CSS
Font Awesome and JQuery DEMO
HTML
JavaScript
Consider Star Ratings With Very Little CSS from CssTricks. It uses no images, no Bootstrap, no Javascript. Pure CSS and Unicode stars, see this. Supported by all browsers except IE <= 6.
Note: Javascript is not required for UI, but is required for sending data to the server and preserving the rating selection after the element loses focus.
Also take a look at Accessible star rating widget with pure CSS. It is a pure CSS as well. Uses a technique discussed here - Custom radio and checkbox inputs using CSS. It's different from the first one in a way that the rating stays selected after the element loses the focus. Unfortunately, it is supported by fewer browsers.
A quick note on CSS Selectors might be useful while reading that.
UPDATE:
Have just reread the post and clicked the link. The first link in my answer is the same as topic starter's. Apologies.
Anyway, I chose not to delete the answer, as it contains a few links which I've been very glad to find and which might be useful for others.
I ended up using Raty. If you are looking for a simple and clean solution, I found this the easiest.