Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
You Probably Shouldn't Be Nesting Your CSS (sriharisriraman.in)
9 points by sriharis on Oct 21, 2013 | hide | past | favorite | 1 comment


This is an issue with most CSS pre-processors: they make nesting easy to use in CSS, but the generated CSS usually results in sometimes extremely long selector strings that it makes it a nightmare to override styling in your media queries. I tend to try and not nest where possible and if I do, I keep it to a maximum of two levels, anything more specific and you're creating problems and extra work for yourself.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: