The best CSS clear property Tutorial In 2024, In this tutorial you can learn Examples,Attribute definitions and instructions,Browser Support,Property Value,related articles,
Left or right does not allow floating element specifies the paragraph:
Left or right side clear attribute specifies the paragraph does not allow floating elements.
Defaults: | none |
---|---|
Inherited: | no |
version: | CSS1 |
JavaScript syntax: | object .style.clear = "left" |
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
clear | 1.0 | 5.0 | 1.0 | 1.0 | 6.0 |
value | description |
---|---|
left | On the left side floating elements are not allowed. |
right | On the right side floating elements are not allowed. |
both | In the left and right sides are not allowed to float elements. |
none | Defaults. Allow floating element appear on both sides. |
inherit | Clear provisions should inherit the property values from the parent element. |
CSS tutorial: CSS the Float