Home › Forums › CSS › A question of Class's › Reply To: A question of Class's
November 24, 2015 at 3:23 pm
#235193
bearhead
Participant
I suppose one drawback of using a selector like img.class
is that it has a higher specificity than simply .class
, which could cause unforeseen conflicts as you add more css.
Also, sometimes it’s good to have a class that is not based on a specific type of element. For example if you have a class like .red_text
, you could apply it to spans, headers, paragraphs etc…