Width constraint not working

width: 23%;

why is this constraint not working?

You have 6 boxes. What is 23 multiplied by 6?
Then add your 10px margin, on both sides that’s 20px, so 20 x 6…
Then padding…

I was expecting the other two to drop in next line.

Flex has nowrap as default.
If you want wrapping you must specify flex-wrap: wrap

5 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.