I've created navigation menu for my website. Here's the html: (you can also view the sidebar menu at belairfinishing.com, its the menu on the left.)
<div><img src="../public/images/skystatic.jpg" id="LinkForBannerImage"></div>
<ul>
<li><a href="../public/Vibratory Process Examples.htm">Proccess Technology</a></li>
<li><a href="../public/Mass_Finishing_Equipment_001.htm">Equipment</a></li>
<li><a href="../public/Mass_Finishing_Media_Compounds_001.htm">Media & Compounds</a></li>
<li><a href="../public/Cleaners and Dryers.htm">Parts Cleaners & Dryers</a></li>
<li><a href="../public/Waste_Water_Treatment_Sollutions_001.htm">Waste Water Treatment</a></li>
<li><a href="../public/Precious Metal Recovery.htm">Precious Metal Recovery</a></li>
<li><a href="../public/Mass_Finishing_Consulting_001.htm">Consulting</a></li>
<li><a href="../public/Mass_Finishing_Technical_Articles_001.htm">Technical Articles</a></li>
<li><a href="../public/Press_Release.htm">Press Releases</a></li>
<li><a href="http://www.toolhoning.com">Toolhoning.com</a></li>
<li><a href="../public/portal/index.html">Distributor Log In</a> </li>
</ul>
</div>
Basically what I would like to happen is that when you hover over one of the items, ONLY the items directly before an after that get a red border. So if someone were to hover over Consulting, then Technical Articles and Precious Metal Recovery will have red borders.
I've been looking this up all morning and haven't found anything that works. So far I've tried to use nth-child(-n) and nth-child(n) to get 1 above an 1 below but I can't get that to actually work. Am I messing up the syntax or is their a better solution for this problem?
Thanks for the help!