I created a responsive navigation bar, but it makes the element below, a Flexslider plug-in, disappear. Before I made the navigation bar, the Flexslider below would show up just fine, but now it doesn't. The z-index for the navbar is at 2, so I don't know what the problem is. How/What should I change to allow the Flexslider to show and the Navigation bar to still be responsive? Thank you!
My code is a bit lengthy, so there are code pens in the comments (it won't let me post them up here for some reason)
Here is a link to the website without the responsive navigation, but it shows the Flexslider: http://bancroftmiddleschool.org
Link to file with Responsive Navigation, but doesn't show Flexslider: http://bancroftmiddleschool.org/index%20copy.html
Change the position CSS in #navBar from position:absolute; to position: relative;.
#navBar{
position: relative;
/* leave rest of the css unchanged */
}
Hope that's the desired effect.
来源:https://stackoverflow.com/questions/39382992/responsive-nav-bar-hides-element-below-it