Webflow sync, pageviews & more.
NEW

How can I adjust the scroll down button in my Webflow hero section to account for a fixed navbar, ensuring the top part of the second fold is not covered?

TL;DR
  • Add top padding or a spacer div to the target section equal to the navbar height to prevent overlap.
  • Alternatively, use custom CSS with scroll-margin-top or adjust the scroll animation offset in Webflow interactions.

If your scroll down button in the hero section scrolls to the next section, but it's getting covered by a fixed navbar, you need to adjust either the scroll behavior or the offset space manually.

1. Add Top Padding to the Target Section

  • Select the section immediately after the hero section (the scroll target).
  • Add top padding equal to, or slightly more than, your navbar height, e.g., if your navbar is 80px tall, add padding-top: 80px.
  • This ensures that when users click the scroll down button, the top content of the next section is visible and not hidden underneath the navbar.

2. Use a Spacing Div Instead

  • Add a Spacer Div at the top of the target section.
  • Set the Spacer Div’s height to match your fixed navbar (e.g., 80px).
  • This method works well if you don’t want to affect the entire section's visual padding.

3. Set Scroll Margin via Custom CSS (Advanced)

  • Webflow doesn’t provide native scroll offset on anchor links, but you can simulate it:

  • Give the anchor target element a unique class (e.g., .scroll-target).

  • Add custom CSS in the Page Settings → Custom Code → Inside Head Tag:

    <style>.scroll-target { scroll-margin-top: 80px; }</style>

  • Replace 80px with your navbar height.

4. Adjust Scroll Animation (if using interactions)

  • If you’re using Webflow Interactions to scroll instead of native anchor links:
  • Go to the Interactions panel.
  • Find the scroll animation and adjust the Y-offset by subtracting your navbar height from the scroll target position.

Summary

To prevent your fixed navbar from covering content when scrolling, add appropriate top padding or a spacing div to the next section, or use scroll-margin-top via custom CSS. This ensures smooth navigation and visible content alignment after scroll.

Rate this answer

Other Webflow Questions