Clipping overflow differs from offering a scrolling viewport. The correct utility depends on whether the hidden material should remain reachable.
Worked example
<div class="demo overflow-clip h-12">
Line one<br />Line two<br />Line three
</div>Implementation notes
The clipped area can still affect layout even when its pixels disappear. Use a wrapper that matches the intended visual bounds.
Try it yourself
Add focusable content just beyond the visible area.
Open the Tailwind CSS example →Editorial date September 2, 2025 · Published December 6, 2026