πͺClear
.clear-none
.clear-noneSets the clear property to none, allowing elements to be positioned adjacent to floated elements on both sides.
CSS equivalent: clear: none;
Example usage:
<div class="clear-none">This element clears no floats.</div>.clear-left
.clear-leftSets the clear property to left, forcing the element to be positioned below any preceding left-floated elements.
CSS equivalent: clear: left;
Example usage:
<div class="clear-left">This element clears left floats.</div>.clear-right
.clear-rightSets the clear property to right, forcing the element to be positioned below any preceding right-floated elements.
CSS equivalent: clear: right;
Example usage:
.clear-both
.clear-bothSets the clear property to both, forcing the element to be positioned below any preceding left or right-floated elements.
CSS equivalent: clear: both;
Example usage:
.clear-inline-start
.clear-inline-startSets the clear property to inline-start, forcing the element to be positioned below any preceding left or right-floated elements within an inline formatting context.
CSS equivalent: clear: inline-start;
Example usage:
.clear-inline-end
.clear-inline-endSets the clear property to inline-end, forcing the element to be positioned below any preceding left or right-floated elements within an inline formatting context.
CSS equivalent: clear: inline-end;
Example usage:
The clear property controls the behavior of an element concerning floated elements. Use these classes to control the positioning of elements in relation to floats within your layout.
Last updated