different height divs float in two columns

前端 未结 2 1879
没有蜡笔的小新
没有蜡笔的小新 2020-12-09 20:19

I have two columns and want to stack divs of different heights in order of appearance.

The divs are dynamically created.

If i only float them on 50% of width

2条回答
  •  一整个雨季
    2020-12-09 20:47

    Use 2 div as container, put both column in this container div,so give this div float left and right....it may work... Also grid layout will work.

提交回复
热议问题