What does the following CSS rule do:
.clear { clear: both; }
And why do we need to use it?
CSS float and clear
Sample Fiddle
Just try to remove clear:both property from the div with class sample and see how it follows floating divs.
clear:both
div
class
sample
divs