@florianstancioiu
Posted
Hi,
I don't think there's a better way of adding the stars (there is another way of adding the images that would not involve writing them multiple times but the click functionality would be lost and without it, the ratings are useless).
As for the ratings, I used position: relative
and set the left
property to a negative value.
The ratings could have been done also using a negative margin but I think the way you did it with translate is probably the most elegant way.
Keep on coding!
Marked as helpful