Check out my website at . I want to customize the navigation bar so that only the active page's navbar li is colored in red.
<div class="navigation-items">
<ul class="nav-list">
<li class="nav-item"><nuxt-link to="/en" class="nav-link">Home</nuxt-link></li>
<li class="nav-item"><nuxt-link to="/en/about" class="nav-link">About Us</nuxt-link></li>
<li class="nav-item"><nuxt-link to="/en/courses" class="nav-link">Courses</nuxt-link></li>
<li class="nav-item"><nuxt-link to="/en/meetups" class="nav-link">Meetups</nuxt-link></li>
<li class="nav-item"><nuxt-link to="/en/contact" class="nav-link">Contact Us</nuxt-link></li>
</ul>
</div>
Here is the corresponding CSS code:
.nav-item a:hover,
.nav-item a:active,
.nav-item a.nuxt-link-active {
color: red;
}
Currently, the home page nav item stays illuminated even when on a different page. How can I have only the active page's nav item highlighted?
Thank you!