Why have I never used CSS columns before!? All the power you need to create a flexible masonry layout and no JavaScript required!
.gallery {
columns: 240px 6;
column-gap: 0;
.picture {
display: inline-block;
}
}pic.twitter.com/KsvpmUKzrH
-
-
Simplified from this
@css article. I had previously been using react-masonry-component which hasn't been updated in three years and adds ~230kb in page weight. Simplifying it like this feels like a pretty decent win!https://css-tricks.com/piecing-together-approaches-for-a-css-masonry-layout/#is-vertical-order-with-ragged-bottoms-ok …Dziękujemy. Twitter skorzysta z tych informacji, aby Twoja oś czasu bardziej Ci odpowiadała. CofnijCofnij
-
Wydaje się, że ładowanie zajmuje dużo czasu.
Twitter jest przeciążony lub wystąpił chwilowy problem. Spróbuj ponownie lub sprawdź status Twittera, aby uzyskać więcej informacji.
