I'm currently working on making a navigation menu responsive. Take a look at my progress so far here: https://jsfiddle.net/a16qwd20/4/
Unfortunately, I am facing an issue where the Javascript doesn't seem to be functioning properly in JS Fiddle, although it works correctly when implemented within script
tags in my code.
As it stands now, the navigation links are displayed correctly above 580px, but the menu icon remains visible. Ideally, I would like the menu icon to only be visible when the display is below 580px, and above that, only show the links!
Below is the CSS for the Navigation before the media query takes effect:
#navigation {
max-width: 100%;
background-color: #333;
padding: 0 1.5% 0 1.5%;
margin: 0px;
}
#navigation ul {
padding: 0px;
}
#navigation ul li {
display: inline-block;
padding: 10px 1.5% 10px 1.5% ;
}
#navigation ul li a {
text-decoration: none;
color: #ffffff;
font-size: 1.2em;
}
#navigation ul li a:hover {
color: #000000;
text-decoration: none;
}
Any assistance on this matter would be greatly appreciated.