{"id":2006,"date":"2024-04-30T15:39:02","date_gmt":"2024-04-30T21:39:02","guid":{"rendered":"https:\/\/frontendmasters.com\/blog\/?p=2006"},"modified":"2024-04-30T15:39:03","modified_gmt":"2024-04-30T21:39:03","slug":"an-alternative-proposal-for-css-masonry","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/an-alternative-proposal-for-css-masonry\/","title":{"rendered":"An alternative proposal for CSS masonry"},"content":{"rendered":"\n<p>I wrote in my masonry proposal feedback:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Are there any more fleshed out alternative proposals?<\/p>\n<\/blockquote>\n\n\n\n<p>I thought <a href=\"https:\/\/webkit.org\/blog\/15269\/help-us-invent-masonry-layouts-for-css-grid-level-3\/\">Jen presented strongly<\/a> that CSS grid is a great place to put masonry layout, but also that it wasn&#8217;t <em>arguing<\/em> <em>against<\/em> anything else. <a href=\"https:\/\/developer.chrome.com\/blog\/masonry\">Rachel Andrew has that &#8220;anything else&#8221;<\/a>, which is <code>display: masonry;<\/code> with more explanation. What&#8217;s nice is that it&#8217;s not limiting:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u00a0All of the demos in the WebKit post would still be possible.<\/p>\n<\/blockquote>\n\n\n\n<p>I assume we&#8217;d lose <code>subgrid<\/code>&#8230; (e.g. sharing columns on an element that spans multiple columns) but if it&#8217;s the case and otherwise we can do every other thing Jen laid out&#8230; then as much as it&#8217;s fun to watch two of the biggest companies in the world blogfight, I kinda don&#8217;t care which way it goes. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wrote in my masonry proposal feedback: Are there any more fleshed out alternative proposals? I thought Jen presented strongly that CSS grid is a great place to put masonry layout, but also that it wasn&#8217;t arguing against anything else. Rachel Andrew has that &#8220;anything else&#8221;, which is display: masonry; with more explanation. What&#8217;s nice [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1844,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[7,165],"class_list":["post-2006","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-css","tag-masonry"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2024\/04\/masonry-thumb.jpg?fit=1000%2C500&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/2006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=2006"}],"version-history":[{"count":1,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/2006\/revisions"}],"predecessor-version":[{"id":2007,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/2006\/revisions\/2007"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/1844"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=2006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=2006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=2006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}