Reputation: 3
I have an <ul>
with four <li>
inside, each of these have 20% width, but a min-width of 200px. Now, whenever I resize the viewport so 4 in a row doesn't fit, instead of drawing the <li>
in a 2x2 grid, it puts 3 in a row, and the one remaining on another line.
What flexbox property I have to use to make a 2x2 grid whenever 4 items in a row doesn't fit?
Upvotes: 0
Views: 782