Skip to content
CSS·Intermediate·Conceptual·1 min read

Why can 100vw cause horizontal overflow?

Short interview answer

Viewport width units may include the scrollbar gutter while the document's content area does not. Width: 100% is often safer for ordinary full-width blocks.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to CSS layout

Related questions