Answer the question
In order to leave comments, you need to log in
How to make a list for this layout?
Sandbox (view in viewport 768px):
codesandbox.io/s/create-react-app-22jzx
or
https://codesandbox.io/s/create-react-app-zi92t
Requires mapped arrays with "squares" (this is in perspective there will be images, approximately 20x20 + - 2px) and structure the text on the page under the layout
. For example, when the layout has 3 elements per line, instead of four, you need to somehow specify a break. In addition, I have inline columns, so to speak, but I don’t understand, I need to do it randomly .
How to implement this without crutch assignment of width by key to each element?
Answer the question
In order to leave comments, you need to log in
display: flex;
justify-content: flex-start;
align-items: flex-start;
//именно это свойство сделает перенос на новую строчку, если места элементам не хватает
flex-wrap: wrap
//именно это свойство сделает перенос на новую строчку, если места элементам не хватает
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question