Streaming live at 10am (PST)

Embedded form scrolls over Navbar


#1

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?


#2

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 toposition:relative
https://www.w3schools.com/cssref/pr_pos_z-index.asp


#3

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