I'm just starting my flexbox journey and have encountered the silliest problem: I can't figure out how to have two columns of equal width.
My markup looks like this:
<div class="flex-wrap">
<div class="left-col"></div>
<div class="right-col"></div>
</div>
and my css is
.flex-wrap {
display: flex;
flex: 2 1 auto;
}
They start out equal width, and responsively remain the same width UNTIL a certain point at which the content of left begins to push it larger.
How can I assure they stay the same width?
question from:
https://stackoverflow.com/questions/66054289/how-to-use-flexbox-to-make-two-columns-of-same-width 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…