Responsive Nav Bar Hides Element Below it

89 Views Asked by At

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

1

There are 1 best solutions below

8
UIPassion On

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.