I have some elements layout using display: flex like this:
<div style="resize: horizontal; overflow: hidden; border: 10px solid black;">
<div style="display: flex; flex-wrap: wrap;">
<div style="flex: 0 0 100px; border: 10px solid #f77;">A</div>
<div style="flex: 0 0 20px; border: 10px solid #373;">B</div>
<div style="flex: 0 0 100px; border: 10px solid #f77;">C</div>
<div style="flex: 0 0 20px; border: 10px solid #373;">D</div>
<div style="flex: 0 0 100px; border: 10px solid #f77;">E</div>
<div style="flex: 0 0 20px; border: 10px solid #373;">F</div>
</div>
</div>
I had used flex-wrap: wrap make line break possible in flex layout context. But I want the wrap only happen between (B, C), (D, E) whenever needed. And avoid any wrap happen between (A, B), (C, D), (E, F).
For example, when the container have 300px width, it should layout as
A B
C D
E F
But not
A B C
D E F
Currently, when container have certain width, wrap between (B, C) or (D, E) are possible. How can I avoid this?