how to make a div to wrap two float divs inside?

后端 未结 11 2214
野趣味
野趣味 2020-12-07 15:40

I don\'t know if it\'s a common problem, but I can\'t find the solution in web so far. I would like to have two divs wrapped inside another div, however these two divs insid

11条回答
  •  渐次进展
    2020-12-07 16:02

    It's a common problem when you have two floats inside a block. The best way of fixing it is using clear:both after the second div.

    It should force the container to be the correct height.

提交回复
热议问题