The float property creates a floating box.
The floating image can be created by applying this property to the IMG element.
#example {
float: left;
}
Property |
Value |
Explanation |
float |
left |
the image floats to the left (the text wraps to the right of the image) |
right |
the image floats to the right (the text wraps to the left of the image) |
none |
the image doesn't float (default) |
Please see the "clears float" when you specified the left or right.
Example