Your homepage appearing wider than the screen and causing a horizontal scrollbar in Webflow is typically due to one or more child elements exceeding the viewport width, despite the parent elements being set to 100vw.
1. Check for Overflowing Elements
- Inspect elements using your browser’s developer tools to identify any element that is wider than the viewport.
- Common culprits include elements with:
- Fixed widths larger than 100vw
- Negative margins pushing content outside the viewport
- Large position-absolute or position-fixed elements located off-screen
2. Check for Unintended Width Settings
- Confirm no children elements are set to widths like 110vw, 150%, etc.
- Watch for combo classes that may override width settings unexpectedly.
3. Look at Images and Media Embeds
- Images, videos, or iframes without max-width: 100% or with fixed widths can overflow.
- Especially check third-party embeds or any code embedded using Embed elements.
4. Check for Horizontal Scroll Caused by Animations or Interactions
- Use the Webflow Interactions panel to ensure no animation temporarily pushes elements beyond the screen (e.g., initial off-screen positions or keyframe-based horizontal sliding).
- Elements translated off-screen via transform: translateX(...) before or after animations can cause this.
5. Inspect Custom Code
- Go to Page Settings > Custom Code or Project Settings > Custom Code to look for:
- Inline styles or classes applying oversized widths
- Scripts dynamically altering element dimensions
6. Apply Overflow Hidden on the Body or Wrapper
- As a temporary solution to isolate issues, try adding overflow-x: hidden to:
- The Body element
- A top-level wrapper or main container
- This won’t fix the underlying issue but can stop horizontal scrolling while debugging.
7. Use Webflow's Preview and Published Mode Comparison
- Sometimes effects only appear on the live site, not in the designer or preview mode.
- Compare preview vs. published site using browser dev tools.
Summary
A horizontal scrollbar usually means an inner element is extending beyond 100vw. Inspect all elements (especially media, interactions, and custom code) for oversized widths, transforms, or margins. Use browser dev tools to identify the element causing the overflow. Apply overflow-x: hidden as a temporary measure while debugging.