Pertaining to html, how do I make a div container grow with the content instead of manually defining a width and height.
5条回答 不知归路 (楼主) 2021-02-05 02:04 If you don't define width and/or height, the div element grows along with its content. Unless his content is set to absolute! If the content is set to float, you have to set to the container overflow:hidden in order to let it grow! 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
If you don't define width and/or height, the div element grows along with its content. Unless his content is set to absolute! If the content is set to float, you have to set to the container
overflow:hidden
in order to let it grow!