Edit: is there a way to change the color of a clicked link and keep it that color until another link in the navigation bar is clicked? Can anyone provide me with a Javascript code which is hard coded and changes the color of a clicked active link?
Edit: I also inspected the element in the Chrome browser and when I inspect the element and look in the styles section, there is no CSS which forces the clicked and active link to be white. Is there a way to check if there is a Javascript code which does that? I don't know much Javacsript code so I wouldn't know what to look for. Also, how would I force :active on an element using Chrome DevTools?
Basically, I bought a template of a website online and have the code. The template has many files and is very javascript based. So in the navigation bar, if I click a link, the web page wont change, the layout will change and the web link will change (it will go from, say, site.com/index to site.com/contacts) but the actual web page won't change. Also, the links in the navigation bar are all green and when I click a link, the active link will be glowing white while all the other links are green. I can't find where this part of the code is so I am wondering is if there is a way to just override all css rules which apply to the tag and just do
a:avtive {
color: red;
}
I did try
a:active {
color: red !important;
}
but that didn't work, it didn't do anything.
So far my code is
<nav class="menuL">
<ul id="menu">
<li><a href="#!/page_about"><span></span>biography</a></li>
<li><a href="#!/page_portfolio" id="portmenu"><span></span>portfolio</a></li>
<ul id="submenu">
<li class="subclass" id="first"><a href="#!/page_wine">Wine</a></li>
<li class="subclass" id="second"><a href="#!/page_landscape">Landscape</a></li>
<li class="subclass" id="third"><a href="#!/page_divers">Divers</a></li>
</ul>
</ul>
</nav>
<nav class="menuR">
<ul id="menu2">
<li><a href="#!/page_galleries"><span></span>galleries</a></li>
<li><a href="#!/page_contacts"><span></span>contact</a></li>
</ul>
</nav>