I'm currently working on refining the navigation bar design for a website, but I've encountered a problem with the submenu functionality. It appears that only one submenu is visible while the others remain hidden.
For example, when navigating to the "Resources" section, the submenu only displays under the "Resources For" tab and not under the other tabs like "Basic Rights", "Health", or "For Educators". Similarly, submenus are missing from tabs such as "Scholarship" under the main tab "Program". I'm struggling to understand why these submenus are not appearing correctly. Any assistance would be greatly appreciated.
You can view a live example here.
Here is the HTML code:
<!-- Sticky Navigation -->
<div class="nav-wrapper">
<ul>
<li>
<a href="#">ABOUT US</a>
<ul>
<li><a href="story.html">OUR HER-STORY</a></li>
<ul class ="submenu">
<li><a href="./resources/academic/academics.html">ACADEMICS</a></li>
...
</ul>
...
And here is the CSS styling:
/* Navigation Bar */
/* Styles color and interaction, as well as continuous position on scroll. */
.nav {
...
}
...