Skip to main content

Overflow

Utilities to control how an element handles content that overflows its available space.

Usage

info

We can apply these principles to a specific axis. Use overflow-x--[value] to apply an overflow style on the horizontal axis; use overflow-y--[value] to apply an overflow style on the vertical axis.

overflow--auto

Use overflow--auto to let the browser determine whether to clip content and show a scroll bar.

overflow--visible

Use overflow--visible to show content that overflows without clipping. No scroll bar will show.

overflow--hidden

Use overflow--hidden to clip content and prevent the scroll bar from showing.

overflow--scroll

Use overflow--scroll to always show scroll styles on the horizontal and vertical axes.


Some browsers will still apply the scroll styles, even when content does not overflow.


Utility to Property Table

info

Utilities follow a [particle-key]--[value] format.

Utility ClassCSS Properties
overflow--autooverflow: auto
overflow--hiddenoverflow: hidden
overflow--scrolloverflow: scroll
overflow--visibleoverflow: visible
overflow--inheritoverflow: inherit
overflow-x--autooverflow-x: auto
overflow-x--hiddenoverflow-x: hidden
overflow-x--scrolloverflow-x: scroll
overflow-x--inheritoverflow-x: inherit
overflow-y--autooverflow-y: auto
overflow-y--hiddenoverflow-y: hidden
overflow-y--scrolloverflow-y: scroll
overflow-y--visibleoverflow-y: visible
overflow-y--inheritoverflow-y: inherit