sush
sush

Reputation: 379

How to change the color of the text of 'active' class in Twitter Bootstrap

I am trying to change the color of the text in active class in the bootstrap framework.

.active{
 color:#720B87;
}

but it is taking the default one.

Upvotes: 3

Views: 14233

Answers (1)

Carol Skelly
Carol Skelly

Reputation: 362780

Assuming you're talking about a navbar .active link, and are using the latest Bootstrap 3, it would be..

.navbar-nav>.active>a, .navbar-nav>.active>a:hover, .navbar-nav>.active>a:focus {
  color:#720B87;
}

For 2.x (if you're not using .navbar-inverse)..

.navbar .nav>li>a {
  color:#720B87;
}

Upvotes: 6

Related Questions