basically it depends on how many tags, classes and ids you have in your selector. classes add more weight than tags and ids add more weight than classes

the last thing you can do is to add an !importantto your style rule, which overrides any other selector. To be correct you can still have more !importantrules, than the selector specifity rule comes into play again. E.g. .klass{color:red !important}