Categories
How to make a grid with rubber blocks on FlexBOX?
Friends, how to make a grid with rubber blocks, so that with a minimum block width of 200px, the blocks would be transferred to a new line? snippet
Answer the question
In order to leave comments, you need to log in
1. Remove flex-basis, because it dictates to the element that it is always slightly less than a quarter of the parent's width. 2. Set the flex property to flex: 1 0 200px;( flex: [flex-grow] [flex-shrink] [flex-basis];).
flex-basis
flex: 1 0 200px;
flex: [flex-grow] [flex-shrink] [flex-basis];
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question