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 that is used to help position elements on a web page. For example, as seen on this page, an image is displayed on the right-side of this block of text, while the text flows around it. The floating image is done by using the img element with the CSS property float to "float" the image on the right side, as shown in the below HTML/CSS code.

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

2. In programming, a float is more commonly referred to as a floating-point.

Video terms