3 ms·
If you find yourself reaching for `!important`, try doubling up the selector instead: .someclassname.someclassname { That will make it one level more specific
by taejavu 5y ago
If you find yourself reaching for `!important`, try doubling up the selector instead:
.someclassname.someclassname {
That will make it one level more specific than just .someclassname, which is usually enough to override styles with a higher specificity, or the same specificity but were loaded afterwards. If it's still not working, add another one!
It's a hack for sure, but definitely the lesser evil.