Masonry masonry using flexbox

I need a masonry net like this:

masonry grid

Is it possible to achieve this using only flexbox? Or in any other way? Do not want to use the Freemasonry library or another library or framework.

+4
source share
1 answer

I believe the CSS grid will be your friend here.

CSS grid layout brings to the Internet a two-dimensional layout tool with the ability to lay out elements in rows and columns. CSS Grid can be used to achieve many different layouts. It stands out when dividing the page into main regions or determining the relationship by size, position and level between parts of a control created from HTML primitives.

, . , , , .

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout

, CSS-.

http://cssgridgarden.com/

0

Source: https://habr.com/ru/post/1663161/


All Articles