w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How do I allow my parent container be responsive and increase its height when its floated child grows?

Add overflow: hidden; to your .container css. To clarify, containers will collapse when their children are floated, using overflow: hidden; (without setting a height value) will allow the container to self-clear the floated elements.

updated fiddle





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.