just a css clearfix and box-sizing box-sizing of border-box => content width includes padding and border width
.cfx::before {
content:"";
clear:both;
display:table;
}
.cfx::after {
content:"";
clear:both;
display:table;
}
* {
box-sizing: border-box;
margin:0;
padding:0;
}