float

CSS Float

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

Example


img {
    float: left;
    margin: 10px;
}
        

Browser Support

Supported by all major browsers.