Home / CSS Tips Generated By ChatGPT / Creating a Masonry Layout with CSS Columns Use CSS columns to achieve a masonry-like layout without JavaScript. Source Code .masonry { column-count: 3; column-gap: 1em; }