CSS float property

CSS float

CSS float, is used in where the element must be positioned.

CSS float property cannot be used on absolutely positioned elements.

CSS float property values are

  • left : The image is positioned to the left of the container.
  • right : The image is positioned to the right of the container.
  • none : The image appears in where it has been placed.

Example

Try Yourself