It is known that HTML elements like div, paragraphs, texts etc. grows itself to fits the content of their child. But if the child of those elements are floatted either to right or left then the parents may collapse.