PositioningClear

Clear

Controls moving elements under floating elements.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
cl-bclear: both;
cl-ieclear: inline-end;
cl-isclear: inline-start;
cl-lclear: left;
cl-noneclear: none;
cl-rclear: right;

None

Initial value

Allows the element to be positioned normally without clearing any floating elements.

<div class="bg-indigo d-32 fl-l"></div>
<div class="cl-none p-6"></div>

Both

Ensures that the element is moved below any floating elements on both sides.

<div class="bg-indigo d-32 fl-l"></div>
<div class="bg-indigo d-32 fl-r"></div>
<div class="cl-b p-6"></div>

Inline End

Ensures that the element is moved below any floating elements on the inline end side, which is typically the right side in left-to-right layouts.

<div class="bg-indigo d-32 fl-r"></div>
<div class="cl-ie p-6"></div>

Inline Start

Ensures that the element is moved below any floating elements on the inline start side, which is typically the left side in left-to-right layouts.

<div class="bg-indigo d-32 fl-l"></div>
<div class="cl-is p-6"></div>

Left

Ensures that the element is moved below any floating elements on the left side.

<div class="bg-indigo d-32 fl-l"></div>
<div class="cl-l p-6"></div>

Ensures that the element is moved below any floating elements on the right side.

<div class="bg-indigo d-32 fl-r"></div>
<div class="cl-r p-6"></div>

Using utility variants

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

Targeting different viewports

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

Targeting hover states

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