Properties
CSS
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";
