How to get different height html divs to float up

后端 未结 5 676
春和景丽
春和景丽 2020-12-30 02:36

I\'ve got a series of dynamically created divs of varying heights in a container div.

Varying text...<
5条回答
  •  爱一瞬间的悲伤
    2020-12-30 03:14

    You should try placing each column of div's into it's own container, and float them left. For example:

    asdf
    asdf
    asdf
    asdf

    etc, etc.

    each column floats left against one another and each item in the columns flows vertically quite well... here's an example: http://jsfiddle.net/V6z8F/

提交回复
热议问题