HomeReferencesCSS Properties

CSS Property: clear

Specifies how box is placed after a floated box.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Possible Values

  • inherit
  • none (default) - Floated elements are not cleared - content will flow around them.
  • left - clears all left-floated elements and places the element underneath.
  • right - clears all right-floated elements and places the element underneath.
  • both - clears all floated elements and places the element underneath.

Example


#canoe { float: left; }

#fish { clear: left; }