Skip to content

Overflow Wrap

Controls word wrapping

Utility Properties
Error: 429

Break Word

This example sets the overflow wrap to break-word. The browser will break long words and wrap them onto the next line to prevent overflow.

Pneumonoultramicroscopicsilicovolcanoconiosis

<div class="bg-indigo-1 p-4 rad-1 ow-bw">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-lead">Pneumonoultramicroscopicsilicovolcanoconiosis</p>
</div>

Normal

Initial value

This example sets the overflow wrap to normal. The browser will only break lines at allowed break points, and long words will overflow the container if they cannot fit.

Pneumonoultramicroscopicsilicovolcanoconiosis

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-lead o-auto ow-n">Pneumonoultramicroscopicsilicovolcanoconiosis</p>
</div>

Conditional styles

Learn how to override existing utilities based on the userโ€™s screen size or other factors, such as hover states.

Media modifier

You can combine responsive breakpoints like sm:-*,md:-*, lg:-*, and xxl:-* allows targeting specific utilities in different viewports.

<div class="ow-n md:ow-bw ..."></div>

Hover modifier

Alternatively, you can apply :hover by using h:-* utility to override elements and change their values when hovering over them.

<div class="ow-n h:ow-bw ..."></div>