Structuring a page with Float
The float property places an element on the left or right side of it's parent-container, thus allowing the text and inline elements to wrap around it
The syntax (values and property)
Float values
left: The element must float on the left side of its containing block. right: The element must float on the right side of its containing block. none: The element must not float. inline-start: The element must float on the start side of its containing block. That is the left side with ltr(left-to-right) scripts, and the right side with rtl(right-to-left) scripts. inline-end: The element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts.
Clearing floats
The clear property sets whether an element must be moved blow floating elements that precedes it. check these examples on clearing floats to properly understand the property.
Example
The code snippets below, gotten from MDN illustrates an example of floats in CSS. Try typing or cpoy the snippet into your favourite code editor to see the illusration.