1. Layout
  2. clear

Layout

clear

Utilities for deciding how nearby content should flow past a floated element.

ClassStyles
clear-left
clear: left;
clear-right
clear: right;
clear-both
clear: both;
clear-start
clear: inline-start;
clear-end
clear: inline-end;
clear-none
clear: none;

Examples

Clearing left

Use the clear-left utility to place an element below any left-floated elements that precede it:

When a floated element sits to the left of a block, the text around it will happily wrap until you decide otherwise. That behavior is wonderful for magazine-style layouts, but it can surprise you the first time a caption drifts up beside a heading you meant to keep alone. The clearing utilities give you a small, predictable lever for exactly these moments. Reach for one when you want a fresh row beneath the float, and leave it off when the wrap is doing you a favor. Because everything lives in the class list, you can tell at a glance which elements break the flow and which ones follow along quietly.

<article>  <img class="float-left ..." src="/img/snow-mountains.jpg" />  <img class="float-right ..." src="/img/green-mountains.jpg" />  <p class="clear-left ...">Maybe we can live without libraries...</p></article>

Clearing right

Use the clear-right utility to place an element below any right-floated elements that precede it:

Floating things to the right feels intuitive right up until two neighbors decide to share the same edge and pile into each other. The fix is rarely a rewrite; more often it is a single utility that pushes the next element down to a clean line of its own. Think of it as a gentle nudge rather than a hard reset, one that respects the columns you already built. Keep the markup readable, let the class names describe your intent, and the layout will behave the same in review as it does in production, with no stylesheet full of one-off overrides hiding somewhere offscreen.

<article>  <img class="float-left ..." src="/img/green-mountains.jpg" />  <img class="float-right ..." src="/img/snow-mountains.jpg" />  <p class="clear-right ...">Maybe we can live without libraries...</p></article>

Clearing all

Use the clear-both utility to place an element below every floated element that precedes it:

Sometimes a section collects floats from more than one direction, and clearing just a single side leaves the other one poking through the layout. When that happens you want a utility that wipes the slate on both edges at once, so the following block starts fresh no matter what came before it. It is the sort of small guarantee that keeps a long page from slowly unraveling as it grows. Add it where a new region begins, trust it to hold the line, and move on to the parts of the interface that actually deserve your full attention today.

<article>  <img class="float-left ..." src="/img/snow-mountains.jpg" />  <img class="float-right ..." src="/img/green-mountains.jpg" />  <p class="clear-both ...">Maybe we can live without libraries...</p></article>

Using logical properties

Use the clear-start and clear-end utilities built upon logical properties to resolve to either the left or right side depending on the text direction:

ربما يمكننا العيش بدون مكتبات، أشخاص مثلي ومثلك. ربما. بالتأكيد، نحن أكبر من أن نغير العالم، ولكن ماذا عن ذلك الطفل الذي يجلس ويفتح كتابًا الآن في أحد فروع المكتبة المحلية ويجد رسومات للتبول والبول على القطة في القبعة والإخوة الصينيون الخمسة؟ ألا يستحق الأفضل؟ ينظر. إذا كنت تعتقد أن الأمر يتعلق بالغرامات المتأخرة والكتب المفقودة، فمن الأفضل أن تفكر مرة أخرى. يتعلق الأمر بحق ذلك الطفل في قراءة كتاب دون أن يتشوه عقله! أو: ربما يثيرك هذا يا سينفيلد؛ ربما هذه هي الطريقة التي تحصل بها على ركلاتك. أنت ورفاقك الطيبين.

<article dir="rtl">  <img class="float-left ..." src="/img/green-mountains.jpg" />  <img class="float-right ..." src="/img/green-mountains.jpg" />  <p class="clear-end ...">...ربما يمكننا العيش بدون مكتبات،</p></article>

Disabling clears

Use the clear-none utility to remove any clears that have been applied to an element:

There are plenty of times when the default flow is exactly what you want and a stray clear is the thing getting in your way. Turning it back off should be just as easy as switching it on, which is why the reset lives right beside its siblings in the same tidy family. Drop it in to undo an inherited rule, pair it with a breakpoint to only clear on larger screens, and let the smaller layouts wrap the way they always did. The goal is never to memorize a pile of edge cases, only to keep the levers close and the intent obvious.

<article>  <img class="float-left ..." src="/img/green-mountains.jpg" />  <img class="float-right ..." src="/img/snow-mountains.jpg" />  <p class="clear-none ...">Maybe we can live without libraries...</p></article>

Responsive design

Prefix a clear utility with a breakpoint variant like md: to apply the utility only at medium screen sizes and above:

<p class="clear-left md:clear-none ...">  Lorem ipsum dolor sit amet...</p>

Read more about using variants in the variants documentation.

Design UIs you’ll love — 5-day mini-course

5-day mini-course

Design UIs that truly shine.

Short, tactical video lessons from the team behind Breezel, delivered straight to your inbox every single day for a week.

Get the free course

Copyright © 2026 Breezel, Inc.·Trademark Policy