.clearfix { overflow: auto; overflow: -moz-scrollbars-none; display: inline-block; } .clearfix { display: block; }