Javascript Reference
Categories: STYLE

javascript STYLE clear

@March 15, 2008, 1:22 a.m.
clearFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2  

Read/Write  

Defines whether the element allows itself to be displayed in the same horizontal band as a floating element. Typically, another element in the vicinity has its float style attribute set to left or right. To prevent the current element from being in the same band as the floating block, set the clear property to the same side (left or right). If you aren't sure where the potential overlap might occur, set the clear property to both. An element that has its clear property set to a value other than none is rendered at the beginning of the next available line below the floating element.

 
Example
 
document.getElementById("myDiv").style.clear = "both";
 
Value

Case-insensitive string of any of the following constants: both | left | none | right.

 
Default

none


Powered by Linode.