When is it appropriate to specify HTML element before a CSS selector class?

  • Thread starter Thread starter fail r us
  • Start date Start date
F

fail r us

Guest
I prefer using "div.classname" when coding CSS since it's more specific, but some people feel that that's a waste of space and you should just use ".classname".

Is there ever a time when you actually need to specify the element before the class name?
 
Back
Top