Skip to main content

Overflow

Overview

These classes control the overflow behavior of elements. Overflow behavior is how content that is too large to fit in an element is handled.

Classes

Class NameDescription
overflow-autoThe content is clipped and a scrollbar is added.
overflow-hiddenThe content is clipped and hidden.
overflow-clipThe content is clipped and hidden.*
overflow-visibleThe content is not clipped and may be rendered outside the box.
overflow-scrollThe content is clipped and a scrollbar is added.
overflow-x-autoThe content is clipped and a scrollbar is added horizontally.
overflow-x-hiddenThe content is clipped and hidden horizontally.
overflow-x-clipThe content is clipped and hidden horizontally.*
overflow-x-visibleThe content is not clipped and may be rendered outside the box horizontally.
overflow-x-scrollThe content is clipped and a scrollbar is added horizontally.
overflow-y-autoThe content is clipped and a scrollbar is added vertically.
overflow-y-hiddenThe content is clipped and hidden vertically.
overflow-y-clipThe content is clipped and hidden vertically.*
overflow-y-visibleThe content is not clipped and may be rendered outside the box vertically.
overflow-y-scrollThe content is clipped and a scrollbar is added vertically.

* The overflow-clip and overflow-x-clip and overflow-y-clip classes are the same as overflow-hidden, except they fix several browser-specific bugs. Another big difference is that clip allows you to clip the content of one axis while allowing the other axis to overflow. This is useful when you want to hide the overflow on one axis but not the other. overflow-clip may not be supported in older browsers. Make sure to check compatibility if used.