Answer the question
In order to leave comments, you need to log in
How to fix background stretching on flex items?
Beaver everyone. A small question surfaced the other day, I have elements with a certain border-radius near the background, but when the display is reduced until they become in 2 rows, problems begin, namely, it confuses me that the background of the elements begins to swell because of which the symmetry is lost how can this be corrected?
Here is an example
Answer the question
In order to leave comments, you need to log in
Try to set flex-basis not as a percentage, but as a fixed width. In your example, try changing line 9 to:flex-basis: 100px;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question