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

后端 未结 11 2209
野趣味
野趣味 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:05

    Float everything.

    If you have a floated div inside a non-floated div, everything gets all screwy. That's why most CSS frameworks like Blueprint and 960.gs all use floated containers and divs.

    To answer your particular question,

    should work just fine, as long as you float:left; all of your

    s.

提交回复
热议问题