I am working on a site that when the screen is small like for mobiles it creates a hover menu button.
My html code for the hover menu button and the menu is shown below. Within the class mnav-button lt768
is where the button appears and the class mobile-nav-wrap lt768
has the menu itself.
My issue is that I got this example from a site
and I have no idea how they get the popup menu to appear when the users clicks within the class mnav-button lt768
.
How can I achieve getting a menu to appear when some clicks within the div class mnav-button lt768
.
Note also that the menu closes when the users clicks the div <div class="close-btn"></div>
Here is the Html,
<div class="mnav-button lt768"></div>
<div class="mobile-nav-wrap lt768">
<nav class="mobile-nav">
<div class="close-btn"></div>
<a href="#" class="home">
<span>Home</span>
</a>
<a href="#">
<span>Company</span>
</a>
<a href="#">
<span>Work</span>
</a>
<a href="#">
<span>Space</span>
</a>
</nav>
</div>
so this still isn't working I uploaded the site so you all can access it here kewsplus.com/testing