I am developing a website for learning purposes. I have created a menu button at top right as seen in the screenshot below.
The below screenshot shows how the page looks when the menu button is triggered.
You can see there are 3 divisions in the expanded menu panel. I am trying to use javascript onmouseout to hide the menu automatically when move the mouse outside the DIV. But as soon as mouse pointer reaches the middle gray div, the menu hides. Though this gray div is a child of menu panel, the menu hides itself as soon as it reaches this gray div. How to over come this problem?
<div class="menupanel">
<div class="menulist">
<img class="menu-logo" src="assets/img/logo-g.svg" alt="">
<ul>
<li><a class="menulist-link" href="#">Home</a></li>
<li><a class="menulist-link" href="#">About Us</a></li>
<li><a class="menulist-link" href="#">Services</a></li>
</ul>
</div>
<div class="contact">
<div class="cont-container">
<h2>Address</h2>
<p>No. 39, LIG3, Surya City, Bangalore - 560008</p>
<hr>
<p><ion-icon class="cont-icons" name="call-outline"></ion-icon><a href="tel:+919663396036">+91 9X9X9X9X9X</a></p>
<p><ion-icon class="cont-icons" name="mail-outline"></ion-icon><a href="mailto:[email protected]">[email protected]</a></p>
<hr>
</div>
</div>
<div class="menuhover">
<img class="menu-img" src="assets/img/home.jpg" alt="">
<img class="menu-img" src="assets/img/about.jpg" alt="">
<img class="menu-img" src="assets/img/service.jpg" alt="">
</div>