Before CSS will eventually get an official masonry layout with or without grid, we can achieve something similar with flex and some scripting, provided that all bricks (or tiles) have the same size. Then we can move every second row towards the top right to fill the gaps between the spikes of the previous elements.






A Seemingly Simple...