The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS A question of Class's Reply To: A question of Class's


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…