Overflow

Set how content overflows its container.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

Usage

Visible

Allow the content to overflow the container.

Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.
<div class="bw-1 bc-slate bs-d h-32 o-v p-2 w-64">
<div class="h-64 c-slate w-full">Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.</div>
</div>

Auto

Try scrolling through the container to see how the overflow behaves.

Add scrollbars to the element if the content overflows.

Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.
<div class="bw-1 bc-slate bs-d h-32 o-auto p-2 w-64">
<div class="h-64 c-slate w-full">Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.</div>
</div>

Clip

Clip the content that overflows the container.

Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.
<div class="bw-1 bc-slate bs-d h-32 o-c p-2 w-64">
<div class="h-64 c-slate w-full">Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.</div>
</div>

Hidden

Hide the content that overflows the container.

Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.
<div class="bw-1 bc-slate bs-d h-32 o-h p-2 w-64">
<div class="h-64 c-slate w-full">Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.</div>
</div>

Scroll

Always show scrollbars on the element.

Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.
<div class="bw-1 bc-slate bs-d h-32 o-s p-2 w-64">
<div class="h-64 c-slate w-full">Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth.</div>
</div>

Responsive Design

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:o-[value]
Small≥640px
md:o-[value]
Medium≥768px
lg:o-[value]
Large≥1024px
xxl:o-[value]
Extra Large≥1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:o-[value]