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

Totally agree with you. Nesting selectors increase coupling with DOM. I did this a lot and I was not productive. At first seems to reduce code, but them, every change in the template I needed to change in the CSS.

What helped was to start building utility classes which I can reuse them.

As the other guy said, nesting selectors has few good usages, should be used carefully.



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

Search: