* { box-sizing: border-box; } .clearfix::before, .clearfix::after { content: " "; display: table; } .clearfix::after { clear: both; }