I am having trouble changing the color of a bootstrap navbar dropdown link when it is clicked. Currently, the color changes to teal for a moment but then reverts back to the default gray. Here is my current CSS:
li.dropdown:active {
background-color: teal;
}
The dropdown in question looks like this:
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false><span class="nav-text">Office Info</span> <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="faq.php">FAQ</a></li>
<li><a href="privacy.php">Privacy</a></li>
<li><a href="health.php">Health Links</a></li>
</ul>
</li>