I have a Bootstrap CSS style:
.navbar-inverse .navbar-nav > li > a.active {
color: #428bca;
background-color: #e7e7e7;
}
I have the MVC 5 HTML as:
<li>@Html.ActionLink("Home", "Index", "Home", new { area = "" }, new {
@class = "active" })</li>
The CSS performs perfectly.
I change the class name from "active" to "xyz" or anything for that matter and it does not work any longer. I do the change in both places, the HTML and CSS.
When I do an inspect, the rule no longer appears as it does when the class name is "active".
Why?