In a parent div with fixed width, I have dynamically created divs that I want to distribute horizontally without knowing the exact number of elements. I tried using the "Using inline-block and justified text" technique from a CSS Tricks page but it did not work as desired when there are more children than will fit in one row.
Upon further inspection, I realized that the spacing issue was not erratic; however, I am looking for a different layout where the second row aligns under the first row instead of distributing evenly.
If anyone has suggestions on alternative approaches to achieve this without relying on JavaScript, I would appreciate any ideas or recommendations.