loading...

Too many people...

aspittel profile image Ali Spittel Updated on ・1 min read

(also learn more about the cascade and specificity)

Discussion

markdown guide
 

TBF, I use !important to override styles coming from a 3rd party library. But that's about the only case. Otherwise I agree with what Scott Tolinsky said on syntax.fm, don't use !important, ever.

 

Although it can be used in countless horrible ways, I think it has its use cases and I think it depends on how you use it and why.

If you’re interested, have a look at this article that explains it quite well.

 

Same. Sometimes it seems to be required, like when styling a non-iframe plugin that could be embeded anywhere.

 

Introducing !importanter! For when your !important gets !important-ed and you need to !important it right back!

 
 

If you use inline styles you dont need to override anything :`(

 
body div#wrapper.wrapp-class div article.notice span.my-message::after {
    content: 'too damn right';
}

Well - this should work without !important :D.

 

Shutout to my tailwind brothers :)

 

not sure whether to laugh or cry, so i do both ❀️