re: Reasons not to use IDs in CSS VIEW POST


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.

Code of Conduct Report abuse