Wrapper question when containing floating divs

后端 未结 4 1926
孤街浪徒
孤街浪徒 2021-01-05 19:00

I would like to create a, browser centered, bordered, wrapper that autoexpands in height around various divs. When using floats to keep the divs in-line, the wrapper just st

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-05 19:38

    The answer to questions that contain float and wrap in one sentence is usually

    overflow: auto
    

    :)

    If you want your wrapper to auto-expand in height, that should do it.

提交回复
热议问题