DEV Community

Discussion on: Reasons not to use IDs in CSS

Collapse
 
alohci profile image
Nicholas Stimpson • Edited

Specificity is good. Embrace it, don't fight it. If you want to style an element a particular way because it is that element and no other, using its id in your selector is the right solution. You won't ever want to override it with a class.