I ran into this same issue, and I have come up with four total viable solutions:
display: flex;
(this is my favorite solution)overflow: auto;
or overflow: hidden;
to the container.c:after {
clear: both;
content: "";
display: block;
}
<div style="clear: both;"></div>