[Resolved] Flex Box Row Layout Gap - Columns Overlapping Parent Div
Xioteer
2 years ago
I have a flex box in row layout with two children 40% | 60% When I add a gap, the right one is overflowing the parent div on the right. I was under the assumption that Flex gap does automatically adjusts this and takes only the available width minus the gap? Any workarounds?
Stockton
2 years ago
I'm not super familiar so I maybe shouldn't say anything. But what if you set one of those to be flex-grow:1 ? So the first box would take 40%, then the gap, and the second one would just take whatever space is left.