The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS What is the deal with !important Re: What is the deal with !important

Noel Forte

In terms of specificity, I’m assuming you’re referring to the CSS specificity hierarchy. Use your bowser’s web inspector and make sure that your CSS isn’t being overridden by anything that is more specific to the elements that you are trying to style. I found a great article [here](http:// “arrticle on css hierarchy”) that has the hierarchy in it.

And then of course there’s always the reduced test case.

As for my opinion, I put `!important`’s all over my website whenever something else gets in the way. The only reason I would suggest not to use important, is because you want to make sure that the elements you are styling are able to be overridden by different styles in the future, say if you want to add something to some of the elements, but not all. Not so easy to do if there’s an `!important`…

Hope this helps.