Export (0) Print
Expand All

cssFloat property

Sets or retrieves a value that specifies whether a box should float to the left, right, or not at all.

Document Object Model (DOM) Level 2 Style Specification, Section 2.3Internet Explorer 9

 

Syntax

JavaScript

p = object.cssFloat

 

Property values

Type: String

none

Default. An object is displayed where it appears in the text.

left

Text flows to the right of the object.

right

Text flows to the left of the object.

Standards information

Remarks

The cssFloat attribute can be set for elements that generate boxes that are not absolutely positioned.

The cssFloat attribute corresponds to the float Cascading Style Sheets (CSS) property. Getting this attribute is equivalent to calling the getProperty method. Setting this attribute is equivalent to calling the setProperty method.

See also

CSSStyleDeclaration
currentStyle
style

 

 

Show:
© 2014 Microsoft