CSS clear property

CSS clear

CSS clear property is used to specify whether an HTML element can be next to an floating element or not.

CSS clear property values are

  • none : It is Default, it allows floating elements on both sides.
  • left : Floating element is not allowed on the left side.
  • right : Floating element is not allowed on the right side.
  • both : Floating element is not allowed on both left and right side.

Example

Try Yourself