100vh
due to dynamic UI elements, causing scroll issues and layout shifts.100dvh
, JavaScript-based height adjustments, or Flex/Grid layouts with relative heights to ensure consistent nav sizing across devices.The issue with using 100vh
on a nav container in Webflow, especially on mobile devices, often results in unwanted scrollable space. This is due to how mobile browsers handle dynamic viewport height and UI elements like the address bar.
100vh
Works on Mobile100vh
equals the full visible height of the viewport.100vh
, depending on user interaction.100vh
can exceed the actual visible part of the screen, creating unintended overflow.100dvh
instead of 100vh
where supported (modern mobile browsers support dvh
for "dynamic viewport height").overflow: hidden
on the body or parent containers only when appropriate to avoid scrollbars.height: 100%
on html and body, then use Flexbox or Grid within the nav container to handle auto layout more responsively.100dvh
yet, but you can:height: 100dvh;
on the nav container class.element.style.height = window.innerHeight + 'px';
).The 100vh issue on mobile is caused by dynamic UI elements altering the actual viewport height. Use 100dvh
, JavaScript height fixes, or avoid full-height nav altogether by relying on Flex layouts or relative height values for better control across devices.