clear

The clear property specifies which sides of an element's box(es) may not be adjacent to an earlier floating box.

clear: none | left | right | both | inherit
Initial: none
Applies To: block-level elements
Inherited: no
Percentages: NA
Media: visual

Values

Δ

clear: value;
 
Value: Description:
both Clears earlier left-floating and right-floating boxes
inherit Takes the same computed value as the property for the element's parent
left Clears earlier left-floating boxes
none No constraint with respect to float
right Clears earlier right-floating boxes

DOM

Δ

[window.]document.getElementById("element-id").style.clear = "clear";

Example | Values | both

Δ

Example | Values | left

Δ

Example | Values | none

Δ

Example | Values | right

Δ

Example | DOM

Δ

References

Δ