I am trying to change the font color in my navigation bar. I use bootstrap and my own stylesheets. I want my font to be red, so I'm trying to override every other rule with the help of !important (other things failed as well). But the color stays grey. Those are the computed values on my element from chrome developer tools:
- color: hsl(0, 0%, 60%);
- .navbar-inverse .navbar-brand - #999
a - #428bcaa:-webkit-any-link - -webkit-linknav - red !importantbody - #333
How is it possible that !important gets overriden by styling with class selector and how to make my font red?
(answer is that !important only overrides styles on the same element you apply it to. It doesn't make the element's descendants inherit from it) - from comments.