Embedded form scrolls over Navbar

On the desktop the Navbar element stays and the rest of the website scrolls under it. It all works great but I just put in an newsletter submission form by embedding JS in a container on the body section. Now when I scroll, everything on the page still scrolls under the Navbar like it should but the form itself scrolls OVER the Navbar. Is there a way to fix this or is this determined by the JS and can’t be fixed?

Add a link to get a more accurate answer. In general, you can set navbar to “relative” & z-index (Number like 9999)

Note: z-index only works on positioned elements (position:absolute, position:relative, or position:fixed), so change nav to position:relative

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.