Skip to content

<float> element

A <float> element represents an object that exists outside of the normal flow of paragraphs and text, that are typically elements that text flows around, or are rendered above or below the text.

Attributes

Attribute Description
left The left offset of the float in pixels.
top The top offset of the float in pixels.
width The width of the float in pixels.
height The height of the float in pixels.

Styles

Style Description
width Indicates the original width of the image, in points.
height Indicates the original height of the image, in points.
left Indicates the original position of the image, in points.
top Indicates the original position of the image, in points.
distList Indicates the distance from the text, in points.
distTop Indicates the distance from the text, in points.
distRight Indicates the distance from the text, in points.
distBottom Indicates the distance from the text, in points.
degRotated Indicates any rotation that is to be applied, in degrees.
wrapType Indicates how text should wrap around the object, can be one of the following:- Inline- Square- Tight- Through- TopAndBottom- Behind- Infront
wrapSubType Indicates extra wrapping information when wrapType = tight, can be one of the following:- BothSides- LeftSide- RightSide- LargestSize- TopAndBottom
anchorLeft Indicates the section that the left coordinate is anchored to, can be one of the following:- ColumnPara- Margin- Page- InsideMargin- OutsideMargin
anchorTop Indicates the section that the top coordinate is anchored to, can be one of the following:- ColumnPara- Margin- Page- InsideMargin- OutsideMargin
borderLeft Contains details (width, color, style) for the left border.
borderRight Contains details (width, color, style) for the right border.
borderTop Contains details (width, color, style) for the top border.
borderBottom Contains details (width, color, style) for the bottom border.
zIndex Contains the z-index for the element.
alignHorz Contains the alignment for the horizontal axis, can be one of the following:- Left- Middle- Right
alignVert Contains the alignment for the vertical axis, can be one of the following:- Top- Middle- Bottom
autoWidth Indicates the element should be auto-sized based on its content.
borderInternalVert Contains details (width, color, style) for the internal vertical borders.
borderInternalHorz Contains details (width, color, style) for the internal horizontal borders.
horizontalRule Contains details for the horizontal rule.

Children

Node Description
<img> A float can have zero or more <img> elements.
<p> A float can have zero or more <p> elements.