Skip to content
Support Yumma CSS by starring us on GitHub!

Overflow Wrap

Controls word wrapping

Class Properties

ow-bw

overflow-wrap: break-word;

ow-n

overflow-wrap: normal;

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-l-indigo-6 p-4 rad-1 ow-bw">
<p class="bg-white fs-md p-4 rad-1 ta-c tc-lead">Pneumonoultramicroscopicsilicovolcanoconiosis</p>
</div>

Normal

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-l-indigo-6 p-4 rad-1">
<p class="bg-white fs-md p-4 rad-1 ta-c tc-lead ovf-auto ow-n">Pneumonoultramicroscopicsilicovolcanoconiosis</p>
</div>

Utilizing utilities conditionally

Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.

Responsive breakpoints

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

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

Utilizing utilities conditionally

Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.

Hover states

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

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