Quote:
Originally Posted by JSWolf
Just a quick note. You don't need the p in p.hd. What p.hd does is tie the class hd to p. but not having the p and just using .hd, you can use hd with p, span, div, etc. as you see fit.
|
With the caveat that this has lower specificity. That
usually doesn't matter (a class by itself is supposed to have higher specificity than any number of leading elements even if some of them have a class). However, not all readers follow the specificity rules correctly, and I've actually seen situations where ADE violates that rule, so be sure to test your content in a wide range of readers before you do anything that would reduce specificity of a CSS selector.