I'm currently facing an issue with the navigation on my website. Whenever I place a logo image above the menu, the hover effect of the menu stops working correctly. To clarify: the background doesn't change on hover, but the border does. Here are some examples:
Above:
With logo:
The desired outcome:
CSS:
#simple-menu{display: block;float: right;background:rgba(0, 0, 0, 0.5);padding: 15px 20px;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;margin-top: 1.5%;}
#simple-menu{ display:none;}
.pad_menutitle{padding: 5%;width: 90%;background: #2dcb73;}
.pad_menutitle span{display: inline-block;float: right; cursor:pointer;}
/* More CSS properties and rules here */
You can find additional CSS code for styling in the provided snippets.
HTML:
<div class="header4">
<div class="center">
<!--LOGO START-->
<div class="logo">
<center><img src="logo.png"></center>
</div>
<!--LOGO END-->
<!--MENU START-->
<!--MOBILE MENU START--><a id="simple-menu" href="#sidr"><i class="fa-align-justify"></i> <?php _e('Menu' , 'asteria'); ?></a><!--MOBILE MENU END-->
<div id="topmenu"><?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?></div>
<!--MENU END-->
</div>
</div>