CSS Float
Introduction to CSS Float
The `float` property positions an element to the left or right, allowing other elements to wrap around it.
Float Values
- left: Floats the element to the left of its container.
- right: Floats the element to the right of its container.
- none: Default value, does not float the element.
Example
img {
float: left;
margin: 10px;
}
Browser Support
Supported by all major browsers.