7 comments

  • Mike BeersMike Beers, 9 days ago

    That was neat

    0 points
  • Andrew Richardson, 8 days ago

    Isn't this type of layout extremely trivial with grid? Wondering why they chose to recreate this with flexbox.

    -1 points
    • Cameron GettyCameron Getty, 7 days ago

      Do you have any good tutorials on doing this with grid? I tried awhile ago to understand it but just couldn't get it.

      0 points
    • Ramiro RuizRamiro Ruiz, 7 days ago

      While grid is awesome, that codepen example is not fallowing a truly a masonry style, it should be more like Pinterest where you don't know how tall are the items beneath them cover the free space that shorter ones leave. With grid creating rows it will leave spaces or you have to stretch the items to the same height. Just different styles, I think the masonry flex solution from Tobias will work great for a feed or waterfall of content.

      3 points
    • Evan MacAlpineEvan MacAlpine, 1 hour ago

      To echo Ramiro. True masonry should work regardless of a tiles height (it should respond dynamically to height). Grid does not allow for that. You have to know the height of the tiles before hand, which does not work well for dynamically populated content.

      0 points