Trouble with Sticky Navbar on Scroll – Any Ideas?

I’ve been playing around with a sticky navbar, and it mostly works, but for some reason it starts flickering or overlapping content when I scroll down the page. I’ve double-checked my z-index and positioning settings, but no luck so far.
Any help or suggestions?

Hi there,

Sticky navbar flickering and overlapping issues can be resolved by ensuring proper setup in your Webflow project. Here’s how to fix this:

The navbar element should be a direct child of the body element - avoid nesting it inside other containers. Check these key settings:

  • Set the position to “sticky” in the Style panel
  • Add a top value of 0 pixels
  • Set a high z-index value (like 2147483647) to ensure the navbar stays above other elements

Common issues to check if problems persist:

  • Parent elements should not have overflow set to hidden, scroll, or auto
  • Parent elements should not have a fixed height that could restrict the navbar

Hopefully this helps! If you still need assistance, please reply here so somebody from the community can help.

  • Parent element can have overflow set to clip if you still need the overflow hidden effect :grinning_face:
1 Like