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; }
Comments
Post a Comment