cssFloat property
Sets or retrieves a value that specifies whether a box should float to the left, right, or not at all.
![]() ![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: String
-
Default. An object is displayed where it appears in the text.
-
Text flows to the right of the object.
-
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
Show:

