Style clear Property
Style clear Property
The clear property is used to either set or return the position of the element relative to floating objects.
Syntax:-
Its syntax is:- object.style.clear OR object.style.clear = none|left|right|both|initial|inherit
Return:-
Its return is:- string having position of an element relative to floating objects
Further Explanation:-
Value | Description |
---|---|
none | Allows floating objects on both sides of the element. |
left | No floating objects are allowed on the left side of the element. |
right | No floating objects are allowed on the right side of the element. |
both | No floating objects are allowed on either the left or right side of the element. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |