CSS-Tricks
Hacks for dealing with specificity
The overall point here by Harry Roberts is to keep the specificity on your selectors as low as you can. The end result of that effort is:
- More reusable styles.
- When you need to override that style, you have opportunities to nudge that specificity a bit higher while still being reusable and not fighting yourself.
Direct Link to Article — Permalink
Hacks for dealing with specificity is a post from CSS-Tricks
Keine Kommentare:
Kommentar veröffentlichen