- Focus Frontend
- Posts
- Do you know about masonry?
Do you know about masonry?
First of all, a few details in case you are not aware of what masonry is.
A layout type is also called the “waterfall”, where elements with different widths or height stack horizontally or vertically.
Here is an example of vertically stacked elements. This has been known as the “Pinterest” layout for years.
How best to add Masonry layout to CSS continues, Ahmad explores the leading options and shares his take. This post looks at both masonry as both a part of CSS Grid and as its own display type. As is typical with Ahmad’s work, there's lots of good code examples and visuals here to help explain things.
Read the full article here - https://ishadeed.com/article/css-grid-masonry/