3 ms·
I think the fundamental lesson for me was to utilize the cascading nature in small, very clear logical units of tags. And don’t try to implement a grand unifie
by Waterluvian 3y ago
I think the fundamental lesson for me was to utilize the cascading nature in small, very clear logical units of tags. And don’t try to implement a grand unified theory of style for your website where everything is based on a brittle chains of selectors. It’s okay to give tags ids and select by the id instead.
- bavell 3y agoCSS definitely gives you plenty of rope to hang yourself with if you aren't careful about how you choose to apply it! I've been in a few codebases with lots of !important overrides and deeply nested selectors which quickly becomes unmanageable.