style.clear (Property)

A means of controlling text flow and positioning of objects adjacent to one another to allow them to coexist on the same horizontal line or to force a line break before or after them.

Availability:

CSS level - 1
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.clear
CSS syntax:clear: aValue
Argument list:aValueAn alignment control value

This property is useful for giving fine control over the text flow around images or other objects. You can use it to clear alignment settings either side of the object making it behave like a block structured item as far as the text flow is concerned. The following values can be assigned to this property:

The exact behavior depends on the presence of adjacent elements and the settings of their style.float properties being defined as either left or right.

See also:JSSTag.clear, style.float