Answer the question
In order to leave comments, you need to log in
How to make the minimum width and height of the blocks set according to the content using grid or flex?
For example, if you display 3 blocks, then they should occupy the entire width of the parent and be the same width and height (the height is the height of the largest), but when the content does not fit in one of them, then the blocks become 2 in width and again take up the entire width of the parent and be the same width and height, and the third is transferred below and its width and height are the same as everyone else. How to do this with Grid or Flex styles?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question