Javascript Reference
Categories: STYLE

javascript STYLE cssFloat

@March 15, 2008, 1:22 a.m.
cssFloatFirefox/Netscape/NN 6 IE 5(Mac) Chrome/Safari/DOM 2  

Read/Write  

Controls the CSS float attribute for an element, allowing adjacent text content to wrap around block elements, such as images. Changing the value in IE 5 for Macintosh has no effect. The "css" prefix for this property name deflects potential conflicts with the float reserved JavaScript keyword.

 
Example
 
document.getElementById("myDiv").style.cssFloat = "right";
 
Value

String of an allowable constant value: left | right | none.

 
Default

none


Powered by Linode.