Dev Helpers

Tailwind CSS / Flexbox

Horizontal flex row

Dev Helpers · November 21, 2026

Flex utilities define the row but children can still resist shrinking. Inspect long labels before adding more breakpoints.

Worked example

<div class="demo flex gap-2">
  <span class="tile">One</span><span class="tile">Two</span
  ><span class="tile">Three</span>
</div>

Implementation notes

Spacing utilities on children can interact with wrapping. A gap on the flex container often makes a two-row layout easier to reason about.

Try it yourself

Replace one word with a long filename.

Open the Tailwind CSS example →

Editorial date November 21, 2026 · Published December 6, 2026

Related articles

Selection background swatch

The selection variant lets a component specify its own selected-text colours. Readability depends on the selected foreground as well as the highlight.

Skew a label

A skew utility changes the painted shape without allocating extra room for the slanted edge. A separate inner wrapper can keep lettering upright.

Perforated tear line

A perforated divider can use an arbitrary background value when a standard border lacks the desired spacing. Keep the pattern in one reusable class list.