Float may refer to any of the following:

  1. With CSS (Cascading Style Sheets), float is a property that is 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.

ImageOther 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.

  1. In programming, a float is more commonly called a floating-point.
  • How to create images that are right-aligned on a web page.

Video terms