4 ms·
>> just use the class twice in your css. More of the same class means more important This is even crazier than using an "!important" once in a while. You're cr
by developer2 10y ago
>> just use the class twice in your css. More of the same class means more important
This is even crazier than using an "!important" once in a while. You're creating obfuscated CSS that technically respects the concept of cascades and specificity. Yet your reason for doing this is essentially just to avoid "!important", while not actually fixing your cascading/specificity problem. I'd rather see the rare "!important" as a visible warning sign that something was lazily patched, rather than a poor workaround that is invisible.
This kind of solution sounds a lot like I get in trouble for using "!important", so I'll use an alternative dirty hack that is hidden well enough that I probably won't get caught.