Back in my old fixed-width days, I had a clever method of distributing data across three columns by dividing the number of elements by three. It worked pretty efficiently.
Now in this modern responsive world, my current solution involves splitting data into fixed-size buckets (let's say 5) and floating the chunked lists to the left:
While this method is effective for longer lists, it can result in wasted horizontal pixels when dealing with smaller lists. Additionally, if one element happens to be extra wide, it can disrupt the flow of the layout.
Currently, I am using Bootstrap3 but I'm open to exploring a pure CSS solution for this issue.
Is there an optimal way to create responsive multi-column lists that adapt to the available width on different devices?