I am currently working on a jQuery slideDown menu and facing an issue with its width restriction. Despite positioning it to the left with no float, the width seems to be limited.
Below is the media query I am using:
@media only screen and (min-width: 480px) and (max-width: 767px)
{
.main-nav {display:none;}
#logobadge {margin-left: 220px; width: 185px; height: 115px;}
#show-nav {display: block;}
.main-nav {left: 0; margin: 0; width: auto;}
.main-nav ul li, .main-nav ul li a
{
float: none;
width: auto;
background-color: #000000;
clear:both;
}
}
Additionally, here is the menu code I am utilizing:
<div class="show-nav" id="show-nav"><a href="#">Show Navigation</a>
<nav id="nav" role="navigation"><?php wp_nav_menu( array('container_class' => 'main-nav', 'container' => 'nav')); ?></nav>
</div>
I have tried various methods to make the content push down when clicking the show navigation button. Any advice or suggestions would be greatly appreciated.