I am having issues with flexbox. When I use the property gap it is making the columns too wide? I am trying to create a simple 3 column row.
I thought that the gap value would not affect the width set? Ie. flex: 0 1 33.33% and gap 2rem would then adjust the width automatically?
Would anyone have any solutions for this issue?
here is the example - https://codepen.io/CodePlanB1234/pen/WNMypqR
<div class="row projects--wrapper">
<div class="card-project--card col-4-12">
<div class="card-project--image"><img src="/images/bgpic1.jpg" alt="text"></div>
</div>
<div class="card-project--card col-4-12">
<div class="card-project--image"><img src="/images/bgpic1.jpg" alt="text"></div>
</div>
<div class="card-project--card col-4-12">
<div class="card-project--image"><img src="/images/bgpic1.jpg" alt="text"></div>
</div>
<div class="card-project--card col-4-12">
<div class="card-project--image"><img src="/images/bgpic1.jpg" alt="text"></div>
</div>
<div class="card-project--card col-4-12">
<div class="card-project--image"><img src="/images/bgpic1.jpg" alt="text"></div>
</div>
<div class="card-project--card col-4-12">
<div class="card-project--image"><img src="/images/bgpic1.jpg" alt="text"></div>
</div>
</div>