- Description
A float is an element that is shifted left or right on the current line . Other content may wrap around a floated element.
If there is not enough space for a float to fit on the current line it will drop to the next line in which it can fit or until no other floats are present.- Example
div{ float: left; width:30%; }
- Values
- left, right
- Default value
- none
- Introduced in CSS version
- 1
- Applies to elements
- All
- Inherited
- No
- Browser Support
Browsers IE Firefox Safari Opera Chrome Versions 5 1 1 6 0.2
Belongs to:
See the full list CSS properties and browser support: CSS Properties