Float

Updated: 10/11/2017 by Computer Hope

Float may refer to any of the following:

Computer Hope Guy

1. With CSS (cascading style sheets), float is a property used to help position elements on a web page. For example, on this page an image is displayed on the right-side of this block of text. An image may be floated using the img element with the CSS property float, as shown in the HTML/CSS code below.

<img src="/jargon/f/image.jpg" alt="Image" style="float:right;" />
Other text for the page goes here and appears to the left of the image. Once it passes the image, the text wraps around below it, as shown here.

2. In programming, a float is commonly called a floating-point.

Video terms