Skip to content
Get ready for the next version of Yumma CSS, which is going to be amazing!

Flex Wrap

Controls how flex items are wrapped.

Class Property

fw-nw

flex-wrap: nowrap;

fw-w

flex-wrap: wrap;

fw-wr

flex-wrap: wrap-reverse;

No Wrap

The flex items will stay in a single line, even if they overflow the container.

A
B
C
<div class="ovf-auto p-8 p-r rad-3">
<div class="stripes d-f fw-nw g-4 max-w-30 rad-1 tc-white">
<div class="ai-c bg-indigo d-f jc-c p-4 rad-1">A</div>
<div class="ai-c bg-indigo d-f jc-c p-4 rad-1">B</div>
<div class="ai-c bg-indigo d-f jc-c p-4 rad-1">C</div>
</div>
</div>

Wrap

The flex items will wrap onto multiple lines if there is not enough space in the container.

A
B
C
<div class="ovf-auto p-8 p-r rad-3">
<div class="stripes d-f fw-w g-4 max-w-30 rad-1 tc-white">
<div class="ai-c bg-indigo d-f jc-c p-4 rad-1">A</div>
<div class="ai-c bg-indigo d-f jc-c p-4 rad-1">B</div>
<div class="ai-c bg-indigo d-f jc-c p-4 rad-1">C</div>
</div>
</div>

Wrap Reverse

The flex items will wrap onto multiple lines, but in reverse order.

A
B
C
<div class="ovf-auto p-8 p-r rad-3">
<div class="stripes d-f fw-wr g-4 max-w-30 rad-1 tc-white">
<div class="ai-c bg-indigo d-f jc-c p-4 rad-1">A</div>
<div class="ai-c bg-indigo d-f jc-c p-4 rad-1">B</div>
<div class="ai-c bg-indigo d-f jc-c p-4 rad-1">C</div>
</div>
</div>

Using responsive modifiers

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

<div class="fw-wr md:fw-w ..."></div>

Using hover modifiers

Using :hover modifiers such as h:fw-* allows you to override elements and change their values when hovering over them.

<div class="fw-wr h:fw-w ..."></div>