0

I am creating a grid with a dynamic content. I want to adjust the column like. if the column height is less then put two, three column in one column. If the column height is more then put one column.

enter image description here

I want column3 go under coulmn2 and column4 go to column3 position and so everything adjust according to the content

{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
}
MaxiGui
  • 6,190
  • 4
  • 16
  • 33
user comapny
  • 43
  • 1
  • 6

1 Answers1

-1

then create Masonry Masonry Layout

Aman Sharma
  • 933
  • 1
  • 4
  • 12