6

!important (css)
w3school definition: overrides css for this element

my Definition: some shoddy coder can't manage to write simple css and doesn't understand css ordering. Use to override a blonker css

Comments
  • 4
    If you're not doing anything weird then I agree, but `!important` does have valid use cases.
  • 3
    I've used some libraries which used !important so I needed !important to override that haha
  • 3
    used to override a framework style you're using. used to ensure your media query works. it has its place.
  • 0
    @KyleSoBold serious question from non-design guy: wouldn't minifying/packaging make !important redundant by removing unused props?
Add Comment