I have encountered a at many places, but I am not aware why is it done? Can someone brief me on this, why it is used in
It is to clear out floating styles.
clear: http://www.w3.org/wiki/CSS/Properties/clear
float: http://www.w3.org/wiki/CSS/Properties/float