Edited to include HTML as requested - I have removed the full urls as there is no point posting them anyway as they are on a protected staging server
I am trying to amend a friend's website which has been built so that there is a sub menu which appears on every page but is coded only once.
I want to be able to add a highlight to the link for the page you are currently viewing, but I have to do this all in one html snippet - so the code below preceeds the html list which is used for navigation.
The list renders fine, except that I can't get the current page to highlight (the 'active' tag only highlighting as you click the page).
I have read some other posts about adding 'current link' formatting in a separate file but, unfortunately, I have to include all the code in this snippet.
Given that, is what I am trying to achieve possible?
Thanks
CSS:
<style>
#navigation {
color: #ffffff;
font-family: Sans-Serif;
height: 34px;
list-style: none;
margin: 0;
padding: 0;
position: relative;
}
#navigation li a {
color: #000000;
display: block;
font-size: 12px;
font-weight: bold;
padding: 10px 18px;
text-decoration: none;
}
#navigation li a:hover {
background-color: #b36521;
color: #ffffff;
}
#navigation li a:active {
background: #f1d74c;
color: #ffffff;
}
</style>
HTML:
<div id="submenu">
<h3>Menu</h3>
<ul id="navigation">
<li><a href="http://URL/SOAP-BARS">Soap bars</a></li>
<li><a href="http://URL/LIQUID-SOAP">Liquid soap</a></li>
<li><a href="http://URL/BATH-BODY">Bath and body</a></li>
<li><a href="http://URL/SKINCARE">Skincare</a></li>
<li><a href="http://URL/4573204014/CANDLES">Candles</a></li>
<li><a href="http://URL/GIFTS">Gifts</a></li>
<li><a href="http://URL/FAVOURS">Favours</a></li>
<li><a href="http://URL/BROWSE-BY-SCENT">Browse by scent</a></li>
</ul>
</div>