Seeking assistance to solve the following challenge:
Description of Issue: We are dealing with dynamically generated "floating divs" that have equal width but varying heights based on their content. The "Parent container" will have different width parameters to accommodate either 2, 3, or 4 divs (in the attached example there are 2 columns and 3 rows) without gaps between them. The order of the divs should go from left to right, always maintaining hierarchical order by numbers 1, 2, 3, etc.
How can we achieve this layout without gaps caused by traditional float methods?
The number of divs being created is dynamic and not limited...
The solution needs to be compatible with IE8 and IE9.
Thank you, Jonathan.![enter image description here][1]
An example illustration can be found at: