Gets on which side of the object the text will flow.
HRESULT IHTMLCurrentStyle::get_styleFloat(BSTR *p);
- Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
none Default. Object displays where it appears in the text. left Text flows to the right of the object. right Text flows to the left of the object.
Returns S_OK if successful, or an error value otherwise.
With a value of
right, the object is treated as block-level—that is, the IHTMLCurrentStyle::display property is ignored. For example, floating paragraphs allow the paragraphs to appear side-by-side on a document .
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.
div and span objects must have a width set for the float 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.