How do I make a parent/container DIV grow as more children DIV\'s are added.
5条回答 北海茫月 (楼主) 2020-12-30 01:21 Using display:table in the parent div makes it grow even if its contents are floating elements. It makes the div behave like a table, basically. Take a look to the display properties: http://www.w3.org/wiki/CSS/Properties/display 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Using display:table in the parent div makes it grow even if its contents are floating elements. It makes the div behave like a table, basically.
Take a look to the display properties: http://www.w3.org/wiki/CSS/Properties/display