This property removes images from inline flow to allow text to float. The text wraps around the image at the distance specified by the hspace and vspace values. Currently, tables cannot be floated.
Values
Left, right, none
Applies
img
Default
None
Inheritance
No
Caution: Overlapping images can drop characters. When two images are floated, one with float: right
and one with float: left
, the Reader layout engine can sometimes drop letters if the two images overlap. Be sure to include a <br clear="all" />
between images.
Caution: Images at end of chapter or section. Floating images at the end of a “chapter” (that is, before a hard-page-break or end of text) may not be rendered correctly, especially if the images come after the last text in the section. Do not float multiple images near the end of a book, chapter, or hard break. (It's perfectly fine to float one image.)
© 2000 Microsoft Corporation. All rights reserved. Terms of use.