Wrapper question when containing floating divs

后端 未结 4 1893
孤街浪徒
孤街浪徒 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:29

    You can add something like
    as the last element in your wrapper to force it to wrap around your elements that are outside the content stream.

    test column1
    test column2

提交回复
热议问题