News for hackers. Stuff that matters.
Re:CSS coding techniques by lojack on Friday May 20, 2016 @09:35AM (#11737607)
For junior developers, !important is far and above the most abused feature of CSS. 99% of the time I see !important in code, it shouldn't exist and theres probably a better way. Additionally, once you start using it, it becomes very difficult to refactor out of code.

If you've reached the point where you know the right time to use !important, you probably already know its bad and most likely don't need any of this advice.

Re:CSS coding techniques by treerunner on Friday May 20, 2016 @01:39PM (#11739829)
I agree but only if all front-end aspects your application is 100% built in-house. Otherwise, you have framework styles, 3rd party plugin/library styles, etc. Sometimes you have to lean on !important and it's OK - not something to bug yourself out over.