#masonry-layout

[ follow ]
fromWebKit
1 week ago

When will CSS Grid Lanes arrive? How long until we can use it?

Anytime an exciting new web technology starts to land in browsers, developers want to know "when in the world am I going to be able to use this?" Currently, the finalized syntax for Grid Lanes is available in Safari Technology Preview. Edge, Chrome and Firefox have all made significant progress on their implementations, so it's going to arrive sooner than you think. Plus, you can start using it as soon as you want to with progressive enhancement.
Web development
#css-grid-lanes
fromWebKit
2 weeks ago
Web development

New Safari developer tools provide insight into CSS Grid Lanes

Grid Lanes enables masonry-style CSS Grid layouts that align items into rows or columns, preserving document order and avoiding reshuffling during lazy loading.
fromWebKit
1 month ago
Web development

Introducing CSS Grid Lanes

CSS Grid Lanes creates masonry-style layouts using grid-template-columns and repeat(auto-fill, minmax(...)), providing flexible, accessible, JavaScript-free, infinite-loading arrangements.
fromCSS-Tricks
1 month ago

Masonry Layout is Now grid-lanes | CSS-Tricks

In that same GitHub thread, you'll read that Tab Atkins-Bittner shared a "hacky" way to go about it with CSS Grid. You can have Grid do Masonry if you know the heights of the items ahead of time. It's a bit hacky, but you set the grid container to grid: auto-flow dense 1px / <column widths here>;, then set each item to grid-row: span <pixel height as integer>; (for example, if the item is 50px tall, use grid-row: span 50;).
Web development
Mobile UX
fromSmashing Magazine
8 months ago

Masonry In CSS: Should Grid Evolve Or Stand Aside For A New Module? - Smashing Magazine

CSS is evolving towards native masonry support but current options are limited and imperfect.
[ Load more ]