If you have any floating div inside a container and want to clear the floats normally you may are using clear:both class because this is simplest and most common way to solve this. But it's a very old technique.
But Instead of this smart coders now days use clearfix css technique. This allows you to contain floating div without extra structural markup. basically its works on pseudo-elements.