I designed a responsive navigation bar, but in mobile view, the menu icon is being hidden by the menu headings when displayed. Check out the scenario below with a provided CodePen link. I attempted to adjust padding and float properties without success. Any help would be greatly appreciated!
CodePen: http://codepen.io/caguilera0001/pen/yarwRO
After Clicking Menu Icon:
HTML:
<nav id="nav" role="navigation">
<a href="#nav" title="Show navigation">Show navigation</a>
<a href="#" title="Hide navigation">Hide navigation</a>
<ul class="clearfix">
<li><a href="index.html">Home</a></li>
<li><a href=""><span>About Us</span></a>
<ul>
<li><a href="principal's_message.html">Principal's Message</a></li>
<li><a href= "mission_and_vision.html">Mission and Vision</a></li>
<li><a href= "our_history.html">Our History</a></li>
<li><a href= "staff_directory.html">Staff Directory</a></li>
<li><a href= "links.html">Links</a></li>
<li><a href= "photo_gallery.html">Photo Gallery</a></li>
</ul>
</li>
<!-- more list items here -->
</ul>
</nav>
CSS:
#nav {
margin-left: auto;
/* Other styles here */
}
/* Additional CSS rules for different media queries */
@media only screen and (max-width: 750px) {
#nav {
font-size: 7px;
}
}
@media only screen and (max-width: 640px) {
#nav {
font-size: 12px;
}
}