Design comparison
Solution retrospective
What would be the better way to tackle this design?
I'm open to all suggestions! :D
Community feedback
- @NatureSon22Posted over 1 year ago
Using "id" as a selector in CSS is not recommended because it has the highest specificity among all selectors. This means that styles applied to an element with an "id" can be challenging to override, leading to potential conflicts. To avoid such issues, it's better to use classes or compound selectors. If you don't want to create additional class names, you can combine multiple selectors to target specific elements without relying solely on "id" selectors. This approach will make your CSS code more manageable and less prone to conflicts.
Marked as helpful0
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