Class not working quick issue

Hi Guys,

Any ideas why my li’s with a class of smaller dont look smaller font?

#secondaryNav li{

.smaller {



Tested locally in Opera works for me. Maybe some other rule that’s overriding it?

Because the first selector is more specific, and that rule will therefore take precedence.

You’ll have to make the second selector equally specific or more specific than the first one:

#secondaryNav .smaller {

I doubt that very much. What version of Opera are you using? Opera 10.51 definitely does the right thing by not applying the second rule.

No you’re right… by using his code i already made the class more specific…:blush: