W
W
WizardW2020-07-15 20:10:27
css
WizardW, 2020-07-15 20:10:27

How to set up grids css to lay out elements in columns without a fixed height?

5f0f3776c2bd4230257997.png
How to customize list with grids css? It requires the elements to be arranged in columns, evenly distributing all the elements into 4 columns, without a fixed height.

If you do this, then the arrangement of the elements is line by line, but in general the distribution is uniform. Everything is bad with grid-auto-flow: column

display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-auto-flow: row;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question