Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>You shouldn't stop using ID's unless you have a reason to.

The opposite approach is more useful: don't start using ID's unless you have a good reason. Classes can do anything (CSS-wise) that id's can, and lack the downsides (namely reusability and dealing with increased specificity, here's a pretty good write up: http://csswizardry.com/2011/09/when-using-ids-can-be-a-pain-...)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: