KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
You are aware of the age-old problem: Containers containing floated elements don't automatically expand their height to enclose their children. One approach to fix this is the "clearfix" which adds a number of CSS rules to ensure a container stretches properly. However, just giving the container overflow: hidden seems to work just as well, and with the same amount of browser compatibility. According to this guide , both methods are compatible across all browsers that are important today. Does this mean that "clearfix" is deprecated? Is there any advantage left in using it over overflow: hidden ? There is a very similar question here: What is the different between clearfix hack and overflow:hidden vs overflow:auto? but the question isn't really answered there.
Tags (comma-separated)
Save Edits
Cancel