Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

Prevent Flex-wrap 3:1 case

$
0
0

I'm sorry I don't know how to write the right question. But here's the problem I want to solve:

If the container have 4 items, and each item has Flex:1 --> then it will position the items through the order: 1 row with 4 items --> 2 rows with 3 items in row 1 and 1 big item in row 2 ---> 2 rows with 2 items ---> and 4 rows.

Is there any way that I can prevent the case '2 rows, with 3 items in row 1 and 1 big item in row 2'? (the second case)

Same case with a container with 6 items, 8 items,... and so on....

Here's the example:

Example

Thank you very much.


Viewing all articles
Browse latest Browse all 1675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>