Tailwind CSS Overflow
Use these shorthand utilities for quickly configuring how content overflows an element. Learn how to easily wrap text.
overflow property on the fly with four default
values and classes. These classes are not responsive by default.
.overflow-autoon an element with set width and height dimensions. By design, this content will vertically scroll.
.overflow-hiddenon an element with set width and height dimensions.
.overflow-visibleon an element with set width and height dimensions.
.overflow-scrollon an element with set width and height dimensions.
Hide or show overflowing content using the
Scrolling if needed
.overflow-auto to add scrollbars to an element in the
event that its content overflows the bounds of that element. Unlike
.overflow-scroll, which always shows scrollbars, this utility
will only show them if scrolling is necessary.
.overflow-scroll to add scrollbars to an element. Unlike
.overflow-auto, which only shows scrollbars if they are
necessary, this utility always shows them. Note that some operating
systems (like macOS) hide unnecessary scrollbars regardless of this
Scrolling horizontally always
.overflow-x-scroll to allow horizontal scrolling and
always show scrollbars unless always-visible scrollbars are disabled by
the operating system.
Urban rhythm pulses, vibrant streets hum, a symphony of diversity embracing endless possibilities.
Scrolling vertically always
.overflow-y-scroll to allow vertical scrolling and always
show scrollbars unless always-visible scrollbars are disabled by the
Within the bustling cityscape, a vibrant tapestry of cultures intertwines, igniting a sense of boundless exploration and creative inspiration.