html - change the color of class active in bootstrap -


i'm trying change color of class active in html code. i'm creating nav sidebar. here's code:

<div class="col-sm-2">                 <ul class="nav nav-pills nav-stacked nav-static"> <!--stacked untuk jadi vertical -->                     <li class="active"><a>create case</a></li>                     <li><a href="wf-listofcase.php">list of cases</a></li>                     <li><a href="linksofapps.html">links of apps</a></li>                 </ul>     </div> 

how change color? before..

you can use:

.active a{     color: red !important; } 

or avoid !important, use:

.nav-pills > li.active > a{     color: red; } 

demo


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -