Webflow sync, pageviews & more.
NEW

How can I make a scrollable menu for a fixed navigation in Webflow?

TL;DR
  • Fix the navigation to the top with a high z-index and full width.
  • Wrap menu links in a div with a max height and overflow set to auto for scrollability.
  • For mobile, apply the same scroll settings to the mobile menu container.

To create a scrollable menu inside a fixed navigation in Webflow, you need to fix the navigation container, enable scroll for the menu area, and limit its height.

1. Fix the Navigation Bar

  • Select your navigation section (typically a Navbar or custom container).
  • In the Style panel, set Position to Fixed (usually top), and ensure Full Width is checked.
  • Set a z-index (e.g., 1000) to keep it above other content.

2. Set Maximum Height for the Menu Wrapper

  • Identify or create a div wrapper that contains all your menu links (e.g., dropdowns or mobile menu).
  • Add a class to this div (e.g., menu-wrapper).
  • Set a Max Height (e.g., 300px or 40vh) to cap its size.
  • Make sure Overflow is set to Auto or Scroll to enable scrollbars when content exceeds the max height.

3. Handle Mobile Menu (If Applicable)

  • For the mobile menu open state, Webflow typically animates and shows a menu container.
  • Select the menu container (e.g., w-nav-menu) inside the mobile nav component.
  • Add a class (e.g., mobile-menu-scroll) and set:
  • Max Height to a percentage of screen height (e.g., 80vh)
  • Overflow to Auto

This ensures when many menu items are inside, users can still scroll.

4. Style Scrollbar (Optional)

  • Webflow allows custom scrollbar styling via the Style panel only for WebKit browsers.
  • For advanced styling (custom color, width), you’ll need to use custom code inside the Page Settings or an Embed element.

Summary

To make a scrollable menu inside a fixed nav in Webflow, fix the nav container to the top, wrap your menu links in a div with a max height and set overflow to auto, especially for mobile. This ensures users can scroll through longer menus without disrupting layout or usability.

Rate this answer

Other Webflow Questions