HomeReferencesCSS Properties

CSS Property: float

Specifies whether a fixed-width box should float, shifting it to the right or left with surrounding content flowing around it.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Possible Values

  • inherit
  • left - floats the box to the left with surrounding content flowing to the right.
  • right - floats the box to the right with surrounding content flowing to the left.
  • none (default)

Example


#boondoggle {
	width: 20em;
	float: left;
}