Remember that, to use a clearfix, you add the code below to your stylesheet. Then, you apply 'class="clearfix"' to the parent element that wraps around the floated element or elements...
.clearfix::after {
clear: both;
content: "";
display: block;
}