Hey there! I'm currently working on creating a page with a variable number of resizable divs. These divs can be resized horizontally using Bootstrap's col classes (col-2 through col-12), and vertically with no limits. Additionally, new divs can be added at any time.
I would like the next div to be placed after the previous one if space allows, otherwise it should move to the next row. The example below illustrates this concept, where div 2 is resized causing div 6 to shift to the right.
Is there a way to achieve this layout behavior purely with CSS? Thank you!
https://i.sstatic.net/FETSf.png https://i.sstatic.net/QEDE7.png