Skip to content

Css Float

Used to position element to left or right of a container

float: left - element floats to left of container right - elements floats to right none - no float, element in natural position (this is default) inherit - element inherits float property from its parent element.

Float is used for positioning and formatting content. Can be used to wrap text round an image

can use clear:both to clear the float