html - change color of A tag of bootsrap not working -


  <head>   <!-- bootstrap -->       <link href="css/bootstrap.min.css" rel="stylesheet">     **<style>       .navbar-brand{         color:red;       }**     </style>   </head>   <body>     <nav class="navbar navbar-default" role="navigation">       <div class="navbar-header">         **<a class="navbar-brand" href="index.html">test</a>**       </div>     </nav>   </div>     </body> 

i want change color of text red, it's not working. work if put "test" in span , set style span.

<style>   .navbar-brand{     color:red !important;   } </style> 

just add !important end of css color attribute.

edited

when !important used, associated property , value overwrite other contradicting css, wherever may be.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -