Float

Computer Hope Guy1. In Cascading Style Sheets (CSS), 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. This 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="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.

Also see: CSS