CSS overflow Playground

Grandma Marni’s price board with too much writing: set overflow per axis, and the browser answers the values it really uses, how far the writing spills, the…

Why it matters

overflow is in every scroll panel, modal, carousel and card with long text. Pick the wrong value and the content leaks over other elements, or empty scrollbars show up everywhere. The side effects matter too: any value other than visible and clip makes the element a scroll container, which holds in child margins and anchors position: sticky.

The key idea

overflow only acts when the content is bigger than the box, and each axis can differ

Common mistakes

Try it in this playground