Design comparison
Solution retrospective
Feedback is always welcome :)
Community feedback
- @nfor2000Posted almost 2 years ago
Hello , congrats on completing the challenge . I think rather than having multiple class selectors such as <div class="rating-box box-2"> ,for an element you're targeting, you could use the nth-child() selector .For instance if you wished to style the second div element with class name "rating-box", you use in style sheet .rating-box:nth-child(2){styling} .If you wish to style the third div element with the same class ,just replace the value in the parenthesis i.e nth-child(value) with 3. Hence box-1(class name) wont be neccessary .
Marked as helpful0@dilawaizmehwishPosted almost 2 years ago@nfor2000 thank you so much I didn't know that!!
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord