CSS Float and Clear

CSS Float and Clear

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.
float: value;
Value are given as follows - 
  1. Left
  2. Right
  3. Inherit
  4. None
Now we will see Example - 
Example - 
Output -