back

Float

Float is used to move an element to the left or right sides of its container. Other elements (such as text) will then wrap around it.
It can also be used to style the pages main layout (ie floating a sidebar div to the left of the main body)

Float can be used in conjunction with clear.

It has four options:
(1) Left, the element is floated left
(2) Right, the element is floated right
(3) None, the element will not be floated
(4) Inherit, the value will be inherited from its parent element.

Example