- In computer Typesetting environments such as HTML , Wikitext or Desktop Publishing , "floating" describes the alignment of an element (such as an image or table) to the left or right while text wraps around it. In the following HTML example, a CSS rule selects the "caption" class and applies a "float" property to it:
<style type="text/css">
div.caption {
float: right;
}
</style>
<div class="caption">
<img src="IMAGE WOULD GO HERE">
<p>Caption 1</p>
</div>
<p>Rest of the document; text flows around the captioned image.</p>
|