Export (0) Print
Expand All
top
Expand Minimize
This topic has not yet been rated - Rate this topic

styleFloat property

Sets or retrieves on which side of the object the text will flow.

CSS 2.1, Section 5.5.25

Syntax

Integer value = object.put_styleFloat( v);Integer value = object.get_styleFloat(* 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)

Internet Explorer 10. Specifies that the object is a positioned float. For more information about positioned floats, see Positioned Floats.

String format

left | right | none

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Standards information

Remarks

With a value of left or right, the object is treated as block-level—that is, the IHTMLCSSStyleDeclaration::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 IHTMLCSSStyleDeclaration::styleFloat attribute to render. In Microsoft Internet Explorer 5, div and span objects are assigned a width by default and will render if a width is not specified.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.