The !important CSS Rule

3d Animation

This is a very quick one, if you have a particularly tricky bit of CSS that you’re struggling to change, it might be time to use the !important rule. Essentially the CSS !important rule is the nuclear option and overrides all previous styling rules for a specific property on an element. Like a nuclear bomb it’s best to only use as a last resort!

background-color: black !important;