Hi!
I designed a navbar with 7 navigation links. It works fine on desktop and tablet but on mobile, as the menu is a bit long, some links get cut off.
I have read every topic I could find about this issue, tried every suggestion (including thewonglv’s demo kit - “Scrollable Mobile Nav Menu” - which only works on empty pages…), tried setting the overflow to “auto”, “scroll”, you name it, I tried it!
I have no idea how to solve this issue! As a last resort I reduced the nav links padding on mobile, so at least on mobile portrait, all the links are visible. But I really don’t like this “solution”.
Can anyone take a look at my site and help me enable scroll?
Please check the “nav scroll” navbar (inside hero section)
PS: Webflow Team… I found so many users facing the same issue… I believe this should be native! Please don’t tell I have to limit my navigation links to 4 or 5 because sometimes, that’s just not possible! I strongly believe many users would really appreciate if the navbar component automatically enabled scroll when necessary. How can something that seams so easy be so hard?! Please…
Overflow: scroll will work if you will give your menu some height instead of “auto”. So if you will make it height: 100vh (which will be device height) and overflow: scroll or overflow: auto, it will be scrollable if there are not all links visible on the device screen height.
Ok, since navbar is taking part of the screen we have to keep “nav menu” height = 100vh - navbar height (65px of div-navbar + 10px * 2 paddings) = 85 px;
CSS has great function: calc (), but Webflow doesn’t have it built in yet.
So you can add this code snippet to “head” section of custom code area: