CSS Float And Clear Property
You can use the float property to make an element “float” to the left or the right and text and other inline elements will flow around it.
Determines if an element floats to the left or right, allowing text to wrap around it or be displayed inline.
Syntax
Value are given as follows -
- Left
- Right
- Inherit
- None
Now we will see Example -
Example -
Output -