I have been trying to recreate the below picture in css but have been having trouble implementing it with both grids and flexboxes.
I want each of the boxes to simpy fit its content, and the remaining empty boxes to fill the space of the column.
When I try with grids I can easily create three columns with a fixed even gap inbetween columns and rows however I get stuck on how to make the individual boxes dynamic in size depending on its content.
When I try with flex boxes, I can create teh individual boxes of flexible size but it is very hard to limit the boxes to three columns of even size, but let the columns each have multiple elements.
I have thought about simply creating three different flex boxes but wanted to avoid a hardcoded solution, but maybe for this case this is the best solution?
Would I use grids or flexboxes for this kind of design?
Any insight on how to approach such a design would be very helpful thanks.