When displaying flex columns with percent width on a specific width, make sure to leave a 1px gap between them. Check out the screenshot here
html,
body {
margin: 0;
padding: 0;
}
* {
box-sizing: border-box;
}
.wrapper {
max-width: 1200px;
padding: 30px;
}
.container {
display: flex;
flex-wrap: wrap;
background: red;
}
.g {
padding: 30px;
}
.grid-33 {
width: 33.3333%;
}
.grid-50 {
width: 50%;
}
.grid-66 {
width: 66.6666%;
}
.grid-100 {
width: 100%;
}
.white {
background: #fff;
}
.yellow {
background: #ffb401;
}
<div class="wrapper">
<div class="container">
<div class="g white grid-66">
<p>Test</p>
</div>
<div class="g yellow grid-33">
<p>Test</p>
</div>
</div>
</div>
I've already attempted adjusting the grid-33 to 33.3334%, but it doesn't work as expected. Unfortunately, I can't manually adjust specific columns due to the constraints of the framework I'm using. If anyone has any suggestions on how to resolve this issue with flexbox dimensions, it would be greatly appreciated.
Your assistance is valued.