How to fix the issue of CSS collapsing parent having floating children?

Posted by Prem Tiwari | Updated on

In this example you will learn, how to fix the issue of CSS collapsing parent having floating children. The CSS :after pseudo-element in conjunction with the content property is used to resolve the collapsing parent issues in the browsers like Firefox, Chrome, Safari, etc.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers