
Shobha
The best way to predict the future is to invent it
How does grid-auto-flow work in CSS Grid?
The grid-auto-flow property controls the placement of items in CSS Grid when there are more items than defined grid rows or columns. It determines whether items should be placed in rows (row), columns (column), or even both (dense), optimizing the grid layout. By default, it uses row, but using dense can make items fit more tightly in the grid by filling in gaps created by larger items.