So, the css that I have for both html pages, however, the current link style only works on the first page and does not go to the second page when clicked. Do you know why this would be?
css that handles the current link style
li.current > a:link { border-bottom: 0.3px solid #000000; }
First html page (working on this)
<header class="boxed" id="header-white"> <div class="header-margin"> <div class="logo"><a class="ajax-link" href="index-2.html">DAVIT AVOYAN</a></div> <ul class="header-nav"> <li class = "current"><a class="ajax-link" href="index-2.html">UX PORTFOLIO</a></li> <li><a class="ajax-link" href="about-me.html">About me</a></li> </ul>
2nd html page (works on this only if it opens first)
<header class="boxed" id="header-white"> <div class="header-margin"> <div class="logo"><a class="ajax-link" href="index-2.html">DAVIT AVOYAN</a></div> <ul class="header-nav"> <li><a class="ajax-link" href="index-2.html">UX PORTFOLIO</a></li> <li class = "current"><a class="ajax-link" href="about-me.html">About me</a></li> </ul>
source share