HTML CSS JavaScript SEO Python Posts Privacy About Contact

CSS Float

The CSS float property specifies how an element should float.

The CSS float property specifies how an element should float. It was traditionally primarily used to format entire web layouts, but is best used for wrapping text around images.

The float Property

The float property is used for positioning and layout on web pages.

The float property can have one of the following values:

  • left - The element floats to the left of its container
  • right - The element floats to the right of its container
  • none - The element does not float (will be displayed just where it occurs in the text). This is default
Preview

Float Left

Preview