Overflow X

Set how content overflows on the horizontal axis.

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 horizontally.

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="o-x-v h-32 p-2 w-64 bc-slate bw-1 bs-d">
<div class="h-full w-96 c-slate">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

Allow the content to scroll horizontally if it 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="o-x-auto h-32 p-2 w-64 bc-slate bw-1 bs-d">
<div class="h-full w-96 c-slate">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 horizontally.

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="o-x-c h-32 p-2 w-64 bc-slate bw-1 bs-d">
<div class="h-full w-96 c-slate">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 horizontally.

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="o-x-h h-32 p-2 w-64 bc-slate bw-1 bs-d">
<div class="h-full w-96 c-slate">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 a horizontal scrollbar 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="o-x-s h-32 p-2 w-64 bc-slate bw-1 bs-d">
<div class="h-full w-96 c-slate">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>

Responsiveness

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

Target viewport sizes with breakpoint prefixes.

sm:o-x-*
Small640px
md:o-x-*
Medium768px
lg:o-x-*
Large1024px
xxl:o-x-*
Extra Large1536px

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-x-*