If your Webflow navbar overflows with too many links on mobile, enabling scroll ensures users can access all items. Here’s how to enable vertical scrolling for the navbar on small screens.
1. Select the Affected Navbar Element
- Go to the Designer.
- Click on the Navbar component or the container that holds your navigation links.
- Make sure you’re working within the mobile breakpoint where the issue occurs (e.g., Mobile Portrait).
2. Apply a Fixed Height or Max Height
- Select the container or menu that wraps the navigation links (commonly called
Nav Menu
). - In the Style panel, scroll to the Size section.
- Set a fixed height (e.g.,
50vh
or 300px
) or a max height (e.g., max-height: 80vh
) so the element doesn’t keep growing with added links.
- With the same element selected, go to the Overflow section in the Style panel.
- Set Overflow: Auto or Overflow: Scroll.
- Use Auto to show scrollbars only when necessary.
4. Test on Preview and Publish
- Click the eye icon (“Preview” mode) to test behavior on the mobile viewport.
- Use your mouse or a touch emulator to scroll the nav menu.
- Publish your site and test it on a real mobile device to ensure usability.
Summary
To make your navbar scrollable on mobile, set a max height and apply overflow: auto or scroll to the nav menu container. This allows users to access all navigation links, even if they exceed the height of the mobile screen.