It may be a different style, for example #navlist a { color: #000; } #navlist a { color: #000; } elsewhere, this is your code that overrides your .active class:
Try changing:
.active { color: red; }
To:
#navlist a.active { color: red; }
Or:
#navlist a.nav.active { color: red; }
This will increase the specificity of the class, which should override any other class that could override it.
NOTE. You say that actual jQuery works as expected, so I focus solely on the CSS aspect of your question ...
source share