I have a flexbox with columns that each take up one third of the width. However, due to using flex-grow, the last element does not stick to its column size. I understand why this is happening, but I don't want to use max-width as it's not always ideal. Any suggestions on how to fix this would be greatly appreciated!
Current layout: https://i.sstatic.net/JTPVd.png
Desired layout: https://i.sstatic.net/UGtjQ.png
View the CodePen demo here - https://codepen.io/matt-priestley/pen/ZmXqzr
<ul class="container">
<li class="boxes"></li>
<li class="boxes"></li>
<li class="boxes"></li>
<li class="boxes"></li>
<li class="boxes&"gt;</li>
<li class="boxes"></li>
<li class="boxes"gt;</li>
</ul>