Just ran a decent amount of css through csslint, mainly to check for errors. I get 80% of warnings from defining the same header element more than once. So I was wondering what the best way to clear these styles would be ...
h4 { color: red; } .archive h4 { color: green; }
Bearing in mind that I am already using h1-h6 styles elsewhere in the design.
Would it be better to use classes for this and then inherit styles using mix-ins (I use a stylus)?
h4 { color: red; } .archive-header { color: green; }
While I am, why csslint warns about this? Is there performance?
source share