CSS clear Property
The clear property specifies which sides of floating elements are not permitted to float. It sets or returns the element's position in relation to floating objects. It will fit if the element can fit horizontally next to another floated element.
Syntax
Property Values
| Value | Description |
|---|---|
| none | Default. The element is not pushed below the floated elements on the left or right. |
| left | The element is pushed below the floated elements on the left. |
| right | The element is pushed below the floated elements on the right. |
| both | The element is pushed below the floated elements on the left and right. |
| initial | This property is set to its default value. |
| inherit | This property is inherited from its parent element. |
Supported Browsers
| Element | Chrome | Firefox | Safari | Edge / IE | Opera |
|---|---|---|---|---|---|
| clear | 1.0 | 1.0 | 1.0 | 5.0 | 6.0 |