TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

You Probably Shouldn't Be Nesting Your CSS

9 pointsby sriharisover 11 years ago

1 comment

DigitalSeaover 11 years ago
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.