@pa-aggarwal
Posted
Hey,
Your solution looks good and it responds appropriately to the screen size which is great!
For your question about how to deselect a button when another is clicked, instead of using the <button>
element for the ratings from 1-5, you can use multiple input[type="radio"]
elements and give them the same name
attribute. This basically allows only one item to be checked at a time.
I hope that helps answer your question :)