Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

2.3 KB
Raw Blame

description: How to fix overflowing content so the screen doesn't scroll horizontally. icon: computer-mouse-scrollwheel

Fixing overflow issues

Sometimes, the content takes up too much space, causing unintentional horizontal scroll. This frustrates users, especially on mobile, and should be remedied.

Here's a video demonstrating how to diagnose and fix it. After the video, there are detailed instructions.

{% embed url="https://vimeo.com/1031704623" %}

Find the culprit

Toggle "Show" on each instance in the navigator until the horizontal scroll goes away.

It's best to start with the outermost wrappers, like the header, main, and footer, to see which one is causing it, then drill down to inner wrappers, like sections.

Continue going deeper into the nested instances until you find the innermost instance causing the horizontal scroll.

Fix the culprit

There is something in the culprit causing the content to extend past the viewport boundaries.

Many styles can cause overflow, but here are some common things to look for:

Issue Solution
Fixed widths Remove it or set to auto
Flex rows without the ability to wrap Allow wrapping
A single word like "responsibility/accountability" (note the "/" will prevent it from breaking). Separate with a space
Wide content that can't wrap Set overflow to auto

Related