Browse documentation
Reference / Layout
Clear
Move an element below preceding left or right floats. This is useful for a credit line that belongs beneath a wrapped image.
Working example
Ink density test
Use clear-both for a caption when an image can float on either side.
<figure class="flow-root border p-3">
<div class="float-left mr-3 size-12 bg-black" aria-hidden="true"></div>
<p>Ink density test</p>
<figcaption class="clear-both pt-2 text-sm">Printed on uncoated stock.</figcaption>
</figure>Class reference
| Class | CSS declarations |
|---|---|
clear-left | clear: left; |
clear-right | clear: right; |
clear-both | clear: both; |
clear-none | clear: none; |
View full generated CSS
.clear-both {
clear: both;
}
.clear-left {
clear: left;
}
.clear-none {
clear: none;
}
.clear-right {
clear: right;
}