CSS float under and left

前端 未结 3 1507
离开以前
离开以前 2021-01-13 14:19

I have many divs with variable height. I need these divs sort under each other but when they will reach end of window –> create new \"column\".

3条回答
  •  我在风中等你
    2021-01-13 15:06

    Try something like this: Where maxHeight is exactly equal to height of the window.

    
    
    
    
      
      
      
      
    
    
    
      
      
      
      
    
    
    
      
      
      
      
    
    

    The Javascript to loop through this will require a bit of attention but it is plenty possible.

提交回复
热议问题