I'm using scrollspy with bootstraps nav-pills navbar, and can't seem to change the color of the active links, or the hover color. I've been trying all sorts of combinations and still can't seem to figure out why I can't change the color. Any ideas why?
CSS
#stickysteps {
background: #1bb246;
width:100%;
position: absolute;
z-index: 2;
}
#stickysteps h3 {
color: #454545;
font-size: 1.6em;
text-shadow: 0px 2px 3px rgba(255,255,255,0.5);
-webkit-background-clip: text;
-moz-background-clip: text;
background-clip: text;
}
.nav-pills{
background-color: #1bb246 !important;
width: auto !important;
height: auto !important;
box-shadow: none;
}
.nav-pills li {
background-color: #1bb246;
width: auto;
height: auto;
}
.nav-pills li>a>h3:active {
color: red !important;
}
.nav-pills > .active > a,
.nav-pills > .active > a:hover {
color: #ffffff !important;
background-color: #1bb246;
}
Nav
<div id="stickysteps">
<ul class="nav nav-pills">
<% n = 0 %>
<% @manual.steps.order(:priority).each do |step| %>
<li><a href="#step<%= n+1 %>"><h3>Step <%= n + 1 %></h3></a></li>
<% n += 1 %>
<% end %>
</ul>
</div>