styleFloat property
[This documentation is preliminary and is subject to change.]
Sets or retrieves on which side of the object the text will flow.
![]() |
Syntax
Integer value = object.put_styleFloat(BSTR v);Integer value = object.get_styleFloat(BSTR* sFloat);
Property values
Type: BSTR
none (none)
-
Default. Object displays where it appears in the text.
left (left)
-
Text flows to the right of the object.
right (right)
-
Text flows to the left of the object.
-ms-positioned (-ms-positioned)
-
Specifies that the object is a positioned float. For more information about positioned floats, see Positioned Floats.
String format
left | right | none | -ms-positioned
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value |
Standards information
- CSS 2.1, Section 5.5.25
Remarks
With a value of left or right, the object is treated as block-level—that is, the display property is ignored. For example, floating paragraphs allow the paragraphs to appear side-by-side.
Objects following a floating object move in relation to the position of the floating object.
The floating object is moved left or right until it reaches the border, padding, or margin of another block-level object.
The div and span objects must have a width set for the float attribute to render.
Requirements
|
Minimum supported client | Windows XP |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
|
DLL |
|
Build date: 1/23/2012
